From a5147888dd7e6fe86cd8f25671ad3b8879173c8b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 30 Jul 2026 16:28:51 +0100 Subject: [PATCH] feat: export subplot_fit_interferometer_dirty_images (autolens's own) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `aplt.subplot_fit_dirty_images` resolves to the AUTOGALAXY implementation inside `autolens.plot`, so autolens's own version in `autolens/interferometer/plot/fit_interferometer_plots.py` was reachable under no exported name at all. The autolens version auto-derives the tracer's critical curves from the fit when `image_plane_lines is None` and overlays them on the dirty model image — lensing information the autogalaxy version cannot produce. Exported additively as `subplot_fit_interferometer_dirty_images`, matching the existing `subplot_fit_real_space` / `subplot_fit_interferometer_real_space` convention. `subplot_fit_dirty_images` is deliberately left bound to the autogalaxy version: the two signatures differ (`residuals_symmetric_cmap` vs `image_plane_lines`), so rebinding it would be a behaviour change rather than an additive export. Follow-up 4 from #667. Co-Authored-By: Claude Opus 5 --- autolens/plot/__init__.py | 1 + docs/api/plot.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/autolens/plot/__init__.py b/autolens/plot/__init__.py index f4b50822e..7a96de32f 100644 --- a/autolens/plot/__init__.py +++ b/autolens/plot/__init__.py @@ -60,6 +60,7 @@ from autolens.interferometer.plot.fit_interferometer_plots import ( subplot_fit as subplot_fit_interferometer, subplot_fit_real_space as subplot_fit_interferometer_real_space, + subplot_fit_dirty_images as subplot_fit_interferometer_dirty_images, subplot_tracer_from_fit as subplot_fit_interferometer_tracer, subplot_fit_interferometer_combined, ) diff --git a/docs/api/plot.rst b/docs/api/plot.rst index ad37955c6..4d4b29fbe 100644 --- a/docs/api/plot.rst +++ b/docs/api/plot.rst @@ -58,6 +58,7 @@ Create figures and subplots showing quantities of standard **PyAutoLens** object subplot_interferometer_dataset subplot_fit_interferometer subplot_fit_interferometer_real_space + subplot_fit_interferometer_dirty_images subplot_fit_interferometer_combined **Point Source Subplots:**