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

Align HDF reader CF _FillValue with Zarr v3 semantics #420

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sharkinsspatial
Copy link
Collaborator

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.63%. Comparing base (7cbc913) to head (e350cb1).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #420      +/-   ##
==========================================
- Coverage   88.74%   88.63%   -0.12%     
==========================================
  Files          28       28              
  Lines        1742     1751       +9     
==========================================
+ Hits         1546     1552       +6     
- Misses        196      199       +3     
Files with missing lines Coverage Δ
virtualizarr/readers/hdf/hdf.py 95.31% <100.00%> (+0.23%) ⬆️

... and 1 file with indirect coverage changes

@sharkinsspatial sharkinsspatial changed the title Remove unneccesary h5py fillvalue extraction logic. Align HDF reader CF _FillValue with Zarr v3 semantics Feb 20, 2025
@sharkinsspatial
Copy link
Collaborator Author

Closes #414
Closes #343

An h5py group or dataset.
"""
fillvalue = None
for n, v in h5obj.attrs.items():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a way to integrate this so we don't have to loop through attrs twice? Just noticing we also loop through attrs in _extract_attrs

@sharkinsspatial sharkinsspatial marked this pull request as draft February 20, 2025 20:55
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.

TypeError: ufunc 'isnan' not supported for the input types
2 participants