Repository navigation
Conversation
The five mask_extra_galaxies.fits files hold boolean masks (values 0 and 1) but were stored as big-endian float64. Re-store them as uint8 with the PIXSCALE header kept. Mask2D.from_fits loads identical boolean arrays (invert False and True). Dataset 11,695,680 -> 8,320,320 bytes (7.93 MiB). F115W/F150W are kept: multi_dataset/start_here.py ships them commented out for 4-band modelling, and the dataset is allowlisted real data in .gitignore. It therefore stays above clean_slate.sh's 5 MB dataset warning on purpose; that warning is a size heuristic, not a limit, for this dataset. Closes #700 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
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.
Summary
Every
mask_extra_galaxies.fitsindataset/imaging/cosmos_web_ringstored a boolean mask (values 0 and 1) as big-endianfloat64. This PR re-stores all five asuint8and keeps thePIXSCALEheader card. Nothing about how they load changes:al.Mask2D.from_fitsreturns the same boolean array as before, withinvert=Falseandinvert=True. The masks go from 3,879,360 to 504,000 bytes. The dataset goes from 11,695,680 to 8,320,320 bytes (11.15 → 7.93 MiB).F115W/F150W keep-or-drop decision: kept.
scripts/multi_dataset/start_here.pyships both bands commented out on purpose, so a reader can uncomment them for 4-band modelling with no download step. The dataset is also allowlisted real data in.gitignore. At 7.93 MiB it meets the Witness's "under 8 MB", which holds only in MiB (8.32 MB in decimal units). It stays aboveclean_slate.sh's 5 MB dataset warning (DATASET_WARN_KB=5120) on purpose: that warning is a size heuristic, and this dataset is a known exception to it.Closes #700
Scripts Changed
dataset/imaging/cosmos_web_ring/mask_extra_galaxies.fits(209², 354,240 → 48,960 B)dataset/imaging/cosmos_web_ring/wavebands/F115W/mask_extra_galaxies.fits(419², 1,408,320 → 178,560 B)dataset/imaging/cosmos_web_ring/wavebands/F150W/mask_extra_galaxies.fits(419², 1,408,320 → 178,560 B)dataset/imaging/cosmos_web_ring/wavebands/F277W/mask_extra_galaxies.fits(209², 354,240 → 48,960 B)dataset/imaging/cosmos_web_ring/wavebands/F444W/mask_extra_galaxies.fits(209², 354,240 → 48,960 B)Test Plan
C:\Users\Jammy\Workspace\Science\scratch\cosmos_web_ring_mask_dtype\witness_masks.py, run from the branch checkout): all 5 masks areuint8,Mask2D.from_fitsarrays equalgit show origin/main:<file>with invert False/True, dataset 8,320,320 B = 7.93 MiB.pyauto-heart smoke --targeted): no curated script references the changed files, so it ran the import checkscripts/imaging/modeling.py, which passed (33.2 s).scripts/imaging/start_here.pyandscripts/multi_dataset/start_here.pyon the smoke profile (Handsrepro_commandenv,PYAUTO_TEST_MODE=2): both rc=0 (33 s, 32 s).git statuswas clean afterwards, so no mask was rewritten by the run.Validation checklist (--auto run — plan was not pre-approved)
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code