Skip to content

fix: restore unconditional dataset.fits output for aggregator (save_attributes)#479

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/fix-aggregator-dataset-fits
Jul 8, 2026
Merged

fix: restore unconditional dataset.fits output for aggregator (save_attributes)#479
Jammy2211 merged 1 commit into
mainfrom
feature/fix-aggregator-dataset-fits

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Fixes #478.

save_attributes (imaging + interferometer) again writes dataset.fits to the files folder unconditionally, restoring the aggregator data contract that regressed in the visualization overhaul (825544b/081bbd84). Uses current plotter accessors (.native_for_fits, .header_dict); HDU order matches the aggregator (mask/data/noise_map/psf/…).

Verified: autogalaxy guides/results/aggregator/models.py runs to completion (exit 0), TypeError gone. New regression test asserts files/dataset.fits has [MASK, DATA, NOISE_MAP, PSF]. Analysis suite (5 tests) passes.

Paired with the PyAutoLens fix (same branch) for autolens_workspace.

🤖 Generated with Claude Code

`AnalysisImaging`/`AnalysisInterferometer`.save_attributes stopped writing
`dataset.fits` to the `files` folder after the visualization overhaul
(825544b/081bbd84), leaving only the plotter-interface copy in `image/`
which is gated on the `fits_dataset` visualization setting. Fits that don't
emit that output (test-mode/minimal searches) then break the aggregator
loaders with `fit.value(name="dataset") -> None`.

Restore an unconditional `paths.save_fits(name="dataset", ...)` in
save_attributes, honouring the documented HDU contract
(mask/data/noise_map/psf/over_sample_size_* ; interferometer:
mask/data/noise_map/uv_wavelengths) using current plotter accessors.

Adds a regression test asserting save_attributes writes files/dataset.fits
with [MASK, DATA, NOISE_MAP, PSF].

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XwGFQNneASyEoHJm3RGecm
Copilot AI review requested due to automatic review settings July 8, 2026 15:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 8, 2026
@Jammy2211 Jammy2211 merged commit 93c5172 into main Jul 8, 2026
4 checks passed
@Jammy2211 Jammy2211 deleted the feature/fix-aggregator-dataset-fits branch July 8, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: restore unconditional dataset.fits output for aggregator (save_attributes)

2 participants