Repository navigation
feat: fit.png switch for the interpolated source panel - #864
Merged
Merged
Conversation
New plots.yaml key `fit: subplot_fit_source_interpolated` (default false).
When on and the source is a Delaunay / kNN pixelization, fit.png draws one
source panel as the interpolated reconstruction the likelihood uses
("Source Plane (Interpolated)") instead of flat triangles; the layout and
the other source panels are unchanged.
- imaging subplot_fit: mid-zoom panel 7.
- interferometer subplot_fit: zoomed panel 7 (panel 3 of the array-free
2x3 layout).
- read via should_plot in the imaging and interferometer fit plotters.
- rectangular and parametric sources are unaffected.
Requires PyAutoArray#700's `interpolated=` support in plot_mapper.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8MtKvVD9fBkNBqcMb4
This was referenced Nov 17, 2026
Closed
…no zoom With fit.subplot_fit_source_interpolated on (irregular-mesh source), the three source panels become flat triangles at the mid zoom (panel 3, 'Source Plane (Zoom)'), the likelihood's interpolant at that same zoom (panel 7, 'Source Plane (Interpolated)') and flat triangles unzoomed (panel 11). The tight max-zoom view is dropped so triangles and interpolant compare side by side. Switch off: unchanged (max / mid / no zoom). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8MtKvVD9fBkNBqcMb4
…restores mid zoom fit.subplot_fit_source_interpolated now defaults to true. With an irregular-mesh source, fit.png right-hand column is max zoom, no zoom (flat triangles) and the likelihood interpolant bottom right; false (or a rectangular / parametric source) restores max, mid and no zoom. Human decision on PyAutoArray#700, 2026-11-17. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8MtKvVD9fBkNBqcMb4
4 tasks done
…Array#700) No Zoom is always the bottom-right panel; the middle-right panel shows the interpolated reconstruction for Delaunay/KNN sources, or Mid Zoom when it is off. fit_log10.png gets the same column. Interferometer fit.png drops Dirty Signal-To-Noise Map (Dirty Model Image moves to panel 2) so its source column matches imaging, and its source panels share one colour scale. Co-Authored-By: Claude Opus 5.5 <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
Part of PyAutoLabs/PyAutoArray#700 (Discussion PyAutoLabs/.github#46). Merge PyAutoLabs/PyAutoArray#701 first: this PR uses the
interpolated=argument it adds toplot_mapper.New
plots.yamlkey:fit: subplot_fit_source_interpolated, default true. It only changes the layout when the source is a Delaunay or kNN pixelization:false, or a rectangular or parametric source) it is "Source Plane (Mid Zoom)".fit.pngandfit_log10.png.fit.png(3×4): "Dirty Signal-To-Noise Map" is removed and "Dirty Model Image" moves to panel 2, so it has the same source column as imaging, in every case. Its source panels now share one colour scale. The array-free 2×3 layout keeps zoomed + no zoom and adds the interpolated view in its empty last panel.should_plot, including for quick updates and the per-planefit_<i>.png.API Changes
Added only:
subplot_fit(..., source_interpolated=True)in bothautolens.imaging.plot.fit_imaging_plotsandautolens.interferometer.plot.fit_interferometer_plots, andsubplot_fit_log10(..., source_interpolated=True)for imaging;interpolated=Falseon both_plot_source_planehelpers;The
fit.pngandfit_log10.pnglayouts change with a Delaunay/kNN source, and the interferometerfit.pngchanges for every source (S/N panel removed), as described above.See full details below.
Test Plan
test_autolens/imaging/plot/test_fit_source_interpolated.py: titles checked at exact panel positions for:fit.pngandfit_log10.png: Max Zoom / Interpolated / No Zoom by default, and Max / Mid / No when the key is off or the source is rectangular;plots.yamldefault is true.python -m pytest test_autolensgives 1008 passed, 1 skipped, 1 xfailed. After the layout changes (1e212b43b): 1032 passed, 1 xfailed (laptop).Heart: published board GREEN (2026-11-17T15:25Z).
Full API Changes (for automation & release notes)
Added
autolens.imaging.plot.fit_imaging_plots.subplot_fit(..., source_interpolated=True)autolens.interferometer.plot.fit_interferometer_plots.subplot_fit(..., source_interpolated=True)autolens.imaging.plot.fit_imaging_plots._source_has_interpolated_view(fit, plane_index)(private helper)visualize/plots.yamlfit.subplot_fit_source_interpolated: true. Workspace copies are mirrored in separate PRs.Changed Behaviour
fit.png/fit_log10.pngwith a Delaunay / kNN source: panel 7 = Source Plane (Interpolated), was Mid Zoom; panel 11 = No Zoom (unchanged).fit.png, all sources: Dirty Signal-To-Noise Map removed; Dirty Model Image in panel 2; panel 3 = Source Plane (Max Zoom); panel 7 = Interpolated or Mid Zoom; panel 11 = No Zoom.Migration
fit: subplot_fit_source_interpolated: false. The interferometer S/N panel has no switch.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_016nhQ8MtKvVD9fBkNBqcMb4