Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide how to handle writing unicode strings to HDF5 #151

Open
anjakefala opened this issue May 5, 2020 · 1 comment
Open

Decide how to handle writing unicode strings to HDF5 #151

anjakefala opened this issue May 5, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@anjakefala
Copy link
Contributor

memh5 and andata were updated to automatically convert strings to unicode. This is great if you stay within the memh5 framework for writing and reading data to HDF5, but can cause problems if you try to write directly with h5py. h5py does not handle the writing of unicode strings to HDF5 files.

For future analyzers, we should consider populating a memh5.BasicCont (instead of the h5py file handler) with the various datasets, and then use the save method of that container to write to disk. That way it would do all the unicode string conversions automatically.

@anjakefala anjakefala added bug Something isn't working enhancement New feature or request labels May 5, 2020
@anjakefala
Copy link
Contributor Author

Relevant #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant