Repository navigation
test: FitInterferometer parity on the matrix-free interferometer route (PyAutoArray#657) - #670
Merged
Merged
Conversation
Covers PyAutoArray#657 (phase 5a of #638) from the fit side: a rectangular MaternSparse FitInterferometer with Settings(interferometer_route="matrix_free") matches the FFT sparse route (reconstruction to 1e-6 of max, evidence within the SLQ tolerance), positive-only parity, the unsupported configurations raise, and the interferometer visualizer runs on the route with the noise-map column written as nan. No source change: the fit reaches the route through Settings alone. 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
Companion to PyAutoLabs/PyAutoArray#658 (the matrix-free route PR for PyAutoArray#657, phase 5a of PyAutoArray#638). Tests only:
FitInterferometerreachesInversionInterferometerMatrixFreethroughSettings(interferometer_route="matrix_free")with no PyAutoGalaxy source change, and nothing in the fit, visualizer or output path reads a dense inversion attribute on that route.Stacked: CI is red until the PyAutoArray PR merges (the new route does not exist on PyAutoArray main). Merge after it, library-first.
API Changes
None — tests only.
Test Plan
test_fit_interferometer.py: matrix-free vs FFT route on a 6×6RectangularUniform+MaternSparsefit, with and without an ordinary Sersic, coefficients 1.0 and 0.01 — reconstruction ~1.2e-11 relative, chi-squared / regularization term /ln det H≤ 1e-11,log_evidenceandfigure_of_meritwithin the SLQ tolerance (0.09–0.14 nats used of 0.55),model_data/residual_map~2e-11; positive-only parity on a 10×10 mesh with the same zero pattern; a linear light profile and the edge-zeroing combination raiseInversionException.model/test_plotter_interferometer.py: the interferometer visualizer runs on a matrix-free fit; dataset / fit / galaxies / inversion / real-space PNGs and FITS written;source_plane_reconstruction_0.csvcarries anannoise-map column.test_autogalaxy/interferometer: 90 passed (82 before).Heart RED override (development only)
Heart RED at launch and ship; live human authorized the override for this task on 2026-10-26. Exact RED reasons: release validation FAILED (stage integrate); PyAutoHeart/workflows/Release Integrate: failure; PyAutoHeart/workflows/Workspace Smoke: failure; manifest_drift/checks/workspace checkouts (manifest ↔ disk): red; Release readiness: release validation FAILED (stage integrate); autolens: red; Workspace validation: NOT ready — 1429p / 1f / 125s @ cloud#40294511523; test_run: red; Release validation: NOT release_ready — v? profile=? (2026-10-26T07:48:52+00:00); validation_report/stages/integrate: fail; PyAutoBrain: red; PyAutoLens: red; autolens_profiling: red; Worktree drift: 1 orphan / 0 missing / 3 dirty. Branch gates passed: interferometer + analysis + to_inversion tests, black. No release; merge needs its own human
/prmafter the PyAutoArray PR.Full API Changes (for automation & release notes)
Removed
Added
Migration
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code