Return no operated_mapping_matrix_override when psf is None - #578
Merged
Conversation
PyAutoArray interferometer inversions now read operated_mapping_matrix_override (PyAutoArray#459). Interferometer fits construct LightProfileLinearObjFuncList with psf=None, where the image-space PSF-based override below does not apply (and would crash on psf.convolve_over_sample_size): returning None keeps the standard mapping_matrix -> transformer path for both ordinary and operated linear light profiles, preserving existing interferometer behaviour. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lv2LDovvSQydk8biNMSAPL
This was referenced Aug 21, 2026
Merged
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.
Companion to PyAutoLabs/PyAutoArray#460 (PyAutoLabs/PyAutoArray#459).
PyAutoArray interferometer inversions now read
operated_mapping_matrix_override. Interferometer fits constructLightProfileLinearObjFuncListwithpsf=None, where the image-space PSF-based override does not apply — and evaluating it would crash onpsf.convolve_over_sample_size.Changes
profiles/light/linear/abstract.py—operated_mapping_matrix_overridereturnsNonewhenself.psf is None, keeping the standardmapping_matrix→ transformer path for both ordinary and operated linear light profiles. Existing interferometer behaviour is preserved exactly.lp_linear.Sersic) and operated (lp_linear_operated.Gaussian) cases withpsf=None.Merge together with PyAutoLabs/PyAutoArray#460 — this guard must land no later than the autoarray change.
Test results
test_autogalaxy/: 1112 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Lv2LDovvSQydk8biNMSAPL
Generated by Claude Code