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

Backport H5Dchunk_iter to 1.10 branch #1968

Merged
merged 12 commits into from
Feb 21, 2023

Conversation

mkitti
Copy link
Contributor

@mkitti mkitti commented Aug 4, 2022

This backports H5Dchunk_iter #6 to the 1.10 branch from the 1.13 development branch.
xref: https://forum.hdfgroup.org/t/possibility-of-backporting-h5dchunk-iter-to-1-12/9971/2

To do:

@mkitti
Copy link
Contributor Author

mkitti commented Aug 4, 2022

The test failure encountered in #666 may be an issue here as well

@derobins
Copy link
Member

derobins commented Aug 4, 2022

This needs to go to 1.12 first. We move features down the chain of maintenance branches.

@mkitti mkitti force-pushed the mkitti/h5dchunk_iter_1_10 branch from d26e528 to 9b3a35b Compare December 20, 2022 22:47
mkitti and others added 7 commits December 20, 2022 19:12
…FGroup#1419 (HDFGroup#1969)

* H5Dchunk_iter now passes chunk dimension scaled offsets, fix HDFGroup#1419

* Update docs for H5Dchunk_iter, H5Dget_chunk_info*

Modified description for `H5Dchunk_iter`, `H5Dget_chunk_info`, and `H5Dget_chunk_info_by_coord` to the following

 * offset          Logical position of the chunk’s first element in units of dataset elements
 * filter_mask  Bitmask indicating the filters used when the chunk was written
 * size             Chunk size in bytes, 0 if the chunk does not exist
Comment on lines +1964 to +1968
/* In HDF5 1.10 this will not fail. It will fail in 1.12 and older. */
/*
if (ret != FAIL)
TEST_ERROR;
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to fix this creates new issues on HDF5 1.10.

@mkitti
Copy link
Contributor Author

mkitti commented Dec 21, 2022

I backported the test_basic_query in test/chunkinfo.c. This mostly involved changing the names of some constants to older variants. Also an actual dataspace identifier instead of H5S_ALL needed to be used.

I noticed some difference in return value behavior of H5Dget_chunk_info when trying to get information on a chunk greater than the number of chunks. Thus I had to disable one test that I noted above.

Since the HDF5 1.12 version of H5Dchunk_iter is advancing, the time for this may be appropriate now.

@mkitti mkitti marked this pull request as ready for review December 21, 2022 02:21
@derobins derobins merged commit a56f29c into HDFGroup:hdf5_1_10 Feb 21, 2023
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

Successfully merging this pull request may close these issues.

3 participants