Repository navigation
Compress the merged campaign HDF5 with lzf - #937
Merged
Merged
Conversation
hdf5_reconcile writes every unit's dataset with compression=COMPRESSION (lzf), halving final_cat_<run>.hdf5 and full_starcat_<run>.hdf5 at negligible write cost. A test checks compression and exact round-trip across fresh build, add-only append and group-copy rewrite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UB6fn7qPHJeEWzMW1pu6vy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The campaign merges (
final_cat_<run>.hdf5,full_starcat_<run>.hdf5) both go throughworkflow/scripts/hdf5_reconcile.py, which wrote datasets uncompressed: 952 MB for the 25-tile smk-g11 campaign, roughly 800 GB projected at DR6. This PR makes that one writer create every unit's dataset withcompression="lzf"(the module constantCOMPRESSION).Measured on one real tile (smk-g11
181.308, 34,946 rows × 178 columns, 40.8 MB raw; scratch, best of 3):lzf halves the file for a fraction of a second per tile. Shuffle buys another ~10% but slows reads, so it is left off.
Notes
maxshape/resizing), so h5py's auto-chunking is used.h5dump, C/Fortran readers, some non-Python bindings — cannot decode lzf. If collaborators need those, gzip level 1 is the portable alternative at nearly the same size (table above) and ~2× the write time.test_every_dataset_is_compressed_and_round_tripschecks compression and exact round-trip through fresh build, add-only append and rewrite.test_hdf5_reconcile_props.py,test_final_cat_merge_invariants.py,test_star_cat_refresh.py: 14 passed.— Claude on behalf of Cail
🤖 Generated with Claude Code