From 427ad179ad07231616bfa9fe3d9748853df6e3f2 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 27 May 2026 13:43:32 +0100 Subject: [PATCH] Prefer fit_quick.png in quick-update display candidates The new subplot_fit_quick in PyAutoLens writes fit_quick.png (6-panel, 200 DPI) during quick updates. Update _DISPLAY_CANDIDATES to look for it first, falling back to fit.png for analyses that don't have the quick variant yet. Co-Authored-By: Claude Opus 4.7 --- autofit/non_linear/quick_update.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/autofit/non_linear/quick_update.py b/autofit/non_linear/quick_update.py index 3af991c9e..3db59d0d9 100644 --- a/autofit/non_linear/quick_update.py +++ b/autofit/non_linear/quick_update.py @@ -31,13 +31,11 @@ def _convert_jax_to_numpy(instance): return instance -# Filename the worker looks for under `paths.image_path` when refreshing -# a live quick-update display. Every dataset-type `subplot_fit` plotter -# in PyAutoGalaxy / PyAutoLens writes this exact name — the basename -# `"fit"` is passed to `_save_subplot` / `save_figure`, which appends -# the `.png` extension. The `subplot_` prefix that the constant used to -# carry no longer exists on any output anywhere in the codebase. -_DISPLAY_CANDIDATES = ("fit.png",) +# Filenames the worker looks for under `paths.image_path` when refreshing +# a live quick-update display. The first existing file wins. Quick updates +# write `fit_quick.png` (6-panel subplot); full updates write `fit.png` +# (12-panel). The quick variant is preferred when both exist. +_DISPLAY_CANDIDATES = ("fit_quick.png", "fit.png") def _is_ipython_kernel() -> bool: