Skip to content

Commit 82c04df

Browse files
Jammy2211claude
authored andcommitted
Drop subplot_tracer.png fallback — quick-update writes only fit.png
The lens imaging plotter (and every other model plotter) short-circuits with `if quick_update: return` immediately after `subplot_fit`, so the tracer subplot is never written during a quick update. The fallback was also stale: the `subplot_` prefix was dropped from all PNG outputs across the codebase — the file is `tracer.png` now, not `subplot_tracer.png`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5e0b9a5 commit 82c04df

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

autofit/non_linear/quick_update.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ def _convert_jax_to_numpy(instance):
3131
return instance
3232

3333

34-
# Filenames the worker will look for under `paths.image_path`, in priority
35-
# order, when refreshing a live quick-update display. The first existing
36-
# file wins. PyAutoGalaxy / PyAutoLens `subplot_fit` plotters save under
37-
# `fit.png` (the literal "fit" basename is passed to `_save_subplot`);
38-
# `subplot_tracer.png` is the fallback name used by some dataset-model
39-
# variants that don't have a fit subplot per se.
40-
_DISPLAY_CANDIDATES = ("fit.png", "subplot_tracer.png")
34+
# Filename the worker looks for under `paths.image_path` when refreshing
35+
# a live quick-update display. Every dataset-type `subplot_fit` plotter
36+
# in PyAutoGalaxy / PyAutoLens writes this exact name — the basename
37+
# `"fit"` is passed to `_save_subplot` / `save_figure`, which appends
38+
# the `.png` extension. The `subplot_` prefix that the constant used to
39+
# carry no longer exists on any output anywhere in the codebase.
40+
_DISPLAY_CANDIDATES = ("fit.png",)
4141

4242

4343
def _is_ipython_kernel() -> bool:

0 commit comments

Comments
 (0)