isce-framework / isce-framework/isce3
`nisar.h5.h5utils.extractScalar` broken with h5py 3.15.1 and HDF5 2.0.0
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 239
- Forks
- 90
- Avg merge
- 13d 1h
- Merged PRs (30d)
- 5
Description
I was able to successfully build isce3 with HDF5 2.0.0 but it looks like the extractScalar method fails with
TypeError: only 0-dimensional arrays can be converted to Python scalars
In an ipython console, I can confirm that h5py now returns an array of 1 element instead of a scalar.
I also had to explicitly build isce3 using -DCMAKE_POLICY_VERSION_MINIMUM=3.5 as gtest requirements break building isce3 with newer versions of cmake.
Contributor 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.
Research direction
Start by locating nisar.h5.h5utils.extractScalar and reproduce the failure with h5py 3.15.1 and HDF5 2.0.0. Confirm that the method successfully extracts the scalar when h5py returns a one-element array, and verify the reported TypeError no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100