Skip to content

Ab/allow squeeze for hdf parser#983

Open
abarciauskas-bgse wants to merge 9 commits intomainfrom
ab/allow-squeeze-for-hdf-parser
Open

Ab/allow squeeze for hdf parser#983
abarciauskas-bgse wants to merge 9 commits intomainfrom
ab/allow-squeeze-for-hdf-parser

Conversation

@abarciauskas-bgse
Copy link
Copy Markdown
Collaborator

What I did

This PR adds a squeeze boolean parameter to the HDFParser. When squeeze=True, any dimension with shape <=1 is dropped from the chunk manifest.

Acceptance criteria:

  • Closes Feature: Squeeze singleton dimensions in HDFParser #971
  • Tests added
  • Tests passing
  • No test coverage regression
  • Full type hint coverage
  • Changes are documented in docs/releases.md
  • New functions/methods are listed in an appropriate *.md file under docs/api
  • New functionality has documentation

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.00%. Comparing base (e82ac27) to head (6dc9337).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #983      +/-   ##
==========================================
+ Coverage   89.35%   90.00%   +0.65%     
==========================================
  Files          33       33              
  Lines        2038     2071      +33     
==========================================
+ Hits         1821     1864      +43     
+ Misses        217      207      -10     
Files with missing lines Coverage Δ
virtualizarr/parsers/hdf/hdf.py 95.97% <100.00%> (+0.38%) ⬆️

... and 5 files with indirect coverage changes

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

@abarciauskas-bgse
Copy link
Copy Markdown
Collaborator Author

@maxrjones I used your notes for this so let me know if its what you had imagined the solution to be.

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