Repository navigation
interferometer/pixelization: use fit.inversion_with_data for the mapper diagnostics (Discussion #13) - #581
Merged
Conversation
…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>
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
Phase 1 of https://github.com/orgs/PyAutoLabs/discussions/13 (PyAutoLabs/PyAutoLens#757 (open) 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, sofit.inversion.data_subtracted_dict, used bysubplot_of_mapper/subplot_mappings, is no longer available onfit.inversion. The documented accessor for output/diagnostic paths isfit.inversion_with_data(a shallow copy carryingfit.data, sharing the reconstruction). This script fails once PyAutoLens#757 lands (ValueErrorinplot_arrayviasubplot_of_mapper); until #757 is merged and released,fit.inversion_with_datadoes not exist on PyAutoLens main, so this PR's CI is expected red and the PR stays DRAFT behind the library-first and release gates.This PR switches the pixelization example to
fit.inversion_with_datawith one sentence of prose explaining why, and regenerates its notebook. Red control: withfit.inversionthe script fails under the smoke profile against the PyAutoArray phase-1 base; withfit.inversion_with_datait 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.ipynbregeneratedUpstream PR
PyAutoLabs/PyAutoArray#591 (corrective: clear
InversionExceptionfromdata_subtracted_dictondata=None, tolerated by the mapper subplots)Test Plan
scripts/interferometer/features/pixelization/fit.pyruns end to end under the smoke profile (config/build/profile_smoke.yamlenv) withfit.inversion_with_datafit.inversionon the phase-1 PyAutoArray baseGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code