Usage of ancient files for testing breaks with recent h5py/libhdf5
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- data, testing-qa
Research direction
Start with the test suite and the ancient HDF5 files discussed in pull request #102, then read the linked discussion about h5py/libhdf5 attribute encoding. Compare the current checked-in-file approach with the on-demand test-file approach used by xarray and h5netcdf. Done means the affected tests work with recent h5py/libhdf5 without relying on incompatible recreated files.
Written by the indexing model from the issue text.
Description
While working on #102 @bnlawrence and I found a glitch when we recreated test files with recent h5py/libhdf5.
See https://github.com/NCAS-CMS/pyfive/pull/102#discussion_r2393563713 for details.
Citing here for visibility:
If we recreate the file now, the following line of code:
attrs['vlen_str_array'] = [b'Hello', b'World!']
translates to this HDF5 dump:
ATTRIBUTE "vlen_str_array" {
DATATYPE H5T_STRING {
STRSIZE H5T_VARIABLE;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 2 ) / ( 2 ) }
DATA {
(0): "Hello", "World!"
}
}
whereas the old file translates to:
ATTRIBUTE "vlen_str_array" {
DATATYPE H5T_STRING {
STRSIZE 6;
STRPAD H5T_STR_NULLPAD;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 2 ) / ( 2 ) }
DATA {
(0): "Hello\000", "World!"
}
}
It might make sense to move from the current behaviour of testing already created files (and ingesting them into GIT) to creating test files only when testing in the test suite. This is what updownstream libraries like xarray and h5netcdf are doing. Thoughts?
- Dominant language
- Python
- Stars
- 105
- Forks
- 29
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NCAS-CMS/pyfive
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
further optimisationPossibly taken @bnlawrence claimed this 47 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
pyfive and hdf5>=2Openinstallation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
NCAS-CMS/pyfive#279 · 2 comments ·
Maintainers usually reply within 1 day
-
VDS datasets silently return NoneMay be free again @bnlawrence claimed this 48 days ago, and no pull request is open. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
NCAS-CMS/pyfive#275 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
difference in check_dtype for vlen compared to h5pyMay be free again @davidhassell claimed this 152 days ago, and no pull request is open. Openquestion
NCAS-CMS/pyfive#228 · 13 comments · 2 assignees ·
Maintainers usually reply within 1 day
Similar issues
-
eegprep-lean: set channel types from the Zarr group's channel_typePossibly taken @claude claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
sccn/eegprep#668 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blacklanternsecurity/bbot#3679 ·
Maintainers usually reply within 2 days
-
Link Checker ReportOpenBot Type: Bug Type: Documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day