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

Allow for DataType.version = 0 #524

Open
calum-maclean-ul opened this issue Jan 4, 2024 · 2 comments
Open

Allow for DataType.version = 0 #524

calum-maclean-ul opened this issue Jan 4, 2024 · 2 comments

Comments

@calum-maclean-ul
Copy link

In DataType.readDataType(), version = 0 or version > 3 results in an exception.
I have some files which use version = 0 in some places. These files are produced by a third party tool which I cannot control, and I want to be able to read them using jhdf.
Would it be possible to consider some means to be able to load such files? Whether by removing the "version = 0" part, or by some other means.

@jamesmudd
Copy link
Owner

Thanks for raising this issue. Looking at the spec DataType version = 0 should not be in real files https://docs.hdfgroup.org/hdf5/v1_14/_f_m_t3.html#DatatypeMessage ?
If you have a file that is exhibiting this maybe you could share it and I can have a look? If this is the behaviour I think I would want to special case this as it appear to be out of spec.

For versions >3 support is probably possible, again a test file would be useful to take a look at how much work is involved.

@calum-maclean-ul
Copy link
Author

Sample.zip

I've attached the same file as for issue #523, so it contains both the version = 0 content and the Time datatype.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants