Skip to content

interferometer/pixelization: use fit.inversion_with_data for the mapper diagnostics (Discussion #13) - #253

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/sparse-data-none-guard
Sep 30, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/sparse-data-none-guard

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Phase 1 of https://github.com/orgs/PyAutoLabs/discussions/13 (PyAutoLabs/PyAutoGalaxy#637 (merged) on PyAutoArray#589) builds a sparse-operator FitInterferometer's likelihood inversion without the visibilities (data=None) when no galaxy has a non-linear light profile, so fit.inversion.data_subtracted_dict, used by subplot_of_mapper / subplot_mappings, is no longer available on fit.inversion. The documented accessor for output/diagnostic paths is fit.inversion_with_data (a shallow copy carrying fit.data, sharing the reconstruction). This script fails on PyAutoGalaxy main today (TypeError in data_subtracted_dict via subplot_of_mapper).

This PR switches the pixelization example to fit.inversion_with_data with one sentence of prose explaining why, and regenerates its notebook. Red control: with fit.inversion the script fails under the smoke profile against the PyAutoArray phase-1 base; with fit.inversion_with_data it passes (against both the base and the corrective PyAutoArray PR below).

Scripts Changed

  • scripts/interferometer/features/pixelization/fit.py — inversion = fit.inversion → inversion = fit.inversion_with_data, plus one prose sentence; notebooks/interferometer/features/pixelization/fit.ipynb regenerated

Upstream PR

PyAutoLabs/PyAutoArray#591 (corrective: clear InversionException from data_subtracted_dict on data=None, tolerated by the mapper subplots)

Test Plan

  • scripts/interferometer/features/pixelization/fit.py runs end to end under the smoke profile (config/build/profile_smoke.yaml env) with fit.inversion_with_data
  • Red control with fit.inversion on the phase-1 PyAutoArray base
  • Workspace CI on this branch

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…er diagnostics

On the sparse-operator path the likelihood inversion is built without the
visibilities (Discussion #13 phase 1), so subplot_of_mapper / subplot_mappings
need fit.inversion_with_data, which carries them. Notebook regenerated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 30, 2026
@Jammy2211
Jammy2211 marked this pull request as ready for review September 30, 2026 09:52
@Jammy2211
Jammy2211 merged commit 826b7f2 into main Sep 30, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/sparse-data-none-guard branch September 30, 2026 09:52
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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