Skip to content

Commit 44f952f

Browse files
Jammy2211claude
authored andcommitted
Add placeholder subplot_fit_quick for weak lensing and combined fits
Placeholder quick-update functions that delegate to the full subplot: - subplot_fit_quick for FitWeak (writes fit_quick.png) - subplot_fit_combined_quick for multi-dataset imaging fits Will be replaced with lighter-weight renders in future. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0e45d43 commit 44f952f

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

autolens/imaging/plot/fit_imaging_plots.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,28 @@ def subplot_fit_combined(
991991
save_figure(fig, path=output_path, filename="fit_combined", format=output_format)
992992

993993

994+
def subplot_fit_combined_quick(
995+
fit_list: List,
996+
output_path: Optional[str] = None,
997+
output_format: str = None,
998+
colormap: Optional[str] = None,
999+
title_prefix: str = None,
1000+
):
1001+
"""
1002+
Placeholder quick-update subplot for combined multi-dataset imaging fits.
1003+
1004+
Currently delegates to :func:`subplot_fit_combined` but writes
1005+
``fit_quick.png`` so the live display picks it up.
1006+
"""
1007+
subplot_fit_combined(
1008+
fit_list,
1009+
output_path=output_path,
1010+
output_format=output_format,
1011+
colormap=colormap,
1012+
title_prefix=title_prefix,
1013+
)
1014+
1015+
9941016
def subplot_fit_combined_log10(
9951017
fit_list: List,
9961018
output_path: Optional[str] = None,

autolens/weak/plot/fit_weak_plots.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,27 @@ def plot_chi_squared_map(
160160
)
161161

162162

163+
def subplot_fit_quick(
164+
fit,
165+
output_path: Optional[str] = None,
166+
output_format: Optional[str] = None,
167+
title_prefix: Optional[str] = None,
168+
):
169+
"""
170+
Placeholder quick-update subplot for a ``FitWeak``.
171+
172+
Currently delegates to the full ``subplot_fit_weak``. Will be
173+
replaced with a lighter-weight render in future.
174+
"""
175+
subplot_fit_weak(
176+
fit,
177+
output_path=output_path,
178+
output_filename="fit_quick",
179+
output_format=output_format,
180+
title_prefix=title_prefix,
181+
)
182+
183+
163184
def subplot_fit_weak(
164185
fit,
165186
output_path: Optional[str] = None,

0 commit comments

Comments
 (0)