-
Notifications
You must be signed in to change notification settings - Fork 22
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
Write string attributes as a string #79
Comments
lazappi
added a commit
to LTLA/zellkonverter
that referenced
this issue
Feb 16, 2021
Is this issue resolved? I'm trying to write an actual string with |
Thanks for the pull request @LTLA That's now been merged and should be available in version 2.35.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
h5writeAttributes
, it seems that we end up with arrays of fixed-width strings (probablyH5T_C_S1
?). This confuses other HDF5 readers that expect an actual string (usually one of theH5T_CSET
options).It seems like it would be generally useful to include an
encoding=
option inh5writeAttributes
that allows us to switch to ASCII or UTF-8 when a length-1 character vector is supplied. A similar option might also be useful forh5writeDataset
as well. For all other character vectors, this argument can be ignored, with a warning, or we can error out and say that they can't do that.The text was updated successfully, but these errors were encountered: