Skip to content

Fix HDF5 variable attributes displayed as byte reprs - #372

Open
sylvesterkaczmarek wants to merge 2 commits into
nasa:developfrom
sylvesterkaczmarek:bugfix/issue-370
Open

sylvesterkaczmarek wants to merge 2 commits into
nasa:developfrom
sylvesterkaczmarek:bugfix/issue-370

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Sep 10, 2026

Copy link
Copy Markdown

Fixes #370.

Decode HDF5 scalar attribute bytes through the shared normalizer and decode string arrays before reference handling. Fixed- and variable-length storage now compare as the same text, including multidimensional arrays, while numeric arrays and object-reference resolution retain their existing behavior.

Validation on macOS arm64, Python 3.12.11:

  • Full offline suite: 68 passed, 1 authenticated integration test deselected, including 13 new cases. Ten new cases failed before the fix.
  • Existing NetCDF text/CSV/Excel golden checks passed unchanged.
  • The observed ATL06 fixture total remains 4,978; no expected-count or fixture changes were needed.
  • Ruff, formatting, and git diff --check passed. Changelog updated.

Live Earthdata downloads and Windows/Linux runs were not performed. The separate list-truncation issue #371 is outside this change.


📚 Documentation preview 📚: https://ncompare--372.org.readthedocs.build/en/372/

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.97%. Comparing base (c2a18b4) to head (8e877e8).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #372      +/-   ##
===========================================
+ Coverage    96.95%   96.97%   +0.02%     
===========================================
  Files            9        9              
  Lines          591      596       +5     
===========================================
+ Hits           573      578       +5     
  Misses          18       18              
Flag Coverage Δ
python-3.11 96.97% <100.00%> (+0.02%) ⬆️
python-3.12 96.97% <100.00%> (+0.02%) ⬆️
python-3.13 96.97% <100.00%> (+0.02%) ⬆️
python-3.14 96.94% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant