-
-
Notifications
You must be signed in to change notification settings - Fork 287
Add missing test files to h5copygentest #5482
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
base: develop
Are you sure you want to change the base?
Conversation
dataspace_id = H5Screate_simple(2, dims, NULL); | ||
datatype_id = H5Tcopy(H5T_NATIVE_INT32); | ||
dataset_id = | ||
H5Dcreate2(file_id, "dynlibud", datatype_id, dataspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't create quite the same file. A user-defined filter with the ID 300 and comment "dynlibud" (which I think is just the name that h5dump is interpreting) needs to be added to the dataset. If you can track down the original code that created the files (if it exists), that would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(That also means the dataset will need to be chunked 10x5 according to h5dump)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the filter is from https://github.com/HDFGroup/hdf5/blob/develop/tools/test/h5dump/dynlib_dump.c and the file is from https://github.com/HDFGroup/hdf5/blob/develop/tools/test/h5dump/h5dumpgentest.c#L113 / https://github.com/HDFGroup/hdf5/blob/develop/tools/test/h5dump/h5dumpgentest.c#L11196. Probably best again not to duplicate the code, but at least we have the original.
Generate
tudfilter.h5
andtudfilter2.h5
through h5copygentest, to match the checking in h5copy testfiles