-
Notifications
You must be signed in to change notification settings - Fork 41
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
Reading string attribute from group returns weird results #28
Comments
Thank you for the sample and presentation of problem. Will study it |
It is a variable length string attribute; I'm adding support for it. Should get it over the weekend |
Beginning to read. Have to think how to keep the difference of the string type in javascript to be able retain type when flushing back to the h5. And i see you have array of doubles also as an attribute. I'll add more support for attributes in general including when they are arrays |
Great, thank you so much. El vie., 17 jun. 2016 15:23, rimmartin notifications@github.com escribió:
|
For where the type needs to be preserved I'm putting in string objects when writing and returning string objects with the type. reading
where type will be "variable-length" and name is "mflayer" For writing
Hopefully a few more evenings |
Looks nice, thanks ! |
There is now a test that creates an h5 with attributes similar to yours:
adding other changes and tests before publishing so you might want to clone from here. Especially if you have other as yet unsupported h5's. |
Thanks. I will be able to try it on next monday, but I am not sure I am going to know how to build from cloned repo. Please tell me when it is available in npm. Thanks. |
I managed to compile and test. It is working like a charm. Thank you ! |
Oh great! I'll publish after getting a few more types handled |
Hello,
I am trying to read an string attribute and I am having two problems. The first one is that using the same file the string returned is not the same every run. The second one is related to charset, I think.
I attached a sample. The HDF5 file only have one group with attributes. The problem is the string attribute called 'name'. The code is this:
And the result is:
![captura](https://cloud.githubusercontent.com/assets/673232/16111557/640b43b0-33b3-11e6-9bce-4f3431e19ec9.PNG)
HDFView show this properties on the group:
![image](https://cloud.githubusercontent.com/assets/673232/16111616/9fbf6576-33b3-11e6-8e4c-011c4d4c22cc.png)
sample.zip
The text was updated successfully, but these errors were encountered: