Skip to content

fix(viz): assert fit_quick.png, the real lens quick-update artifact#159

Merged
Jammy2211 merged 1 commit into
mainfrom
bug/viz-quick-update-fit-png-glob
Jul 10, 2026
Merged

fix(viz): assert fit_quick.png, the real lens quick-update artifact#159
Jammy2211 merged 1 commit into
mainfrom
bug/viz-quick-update-fit-png-glob

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Problem

scripts/{imaging,interferometer,point_source}/modeling_visualization_jit.py fail in the release-fidelity Workspace Validation matrix with:

AssertionError: no fit.png produced under output/.../modeling_visualization_jit/... — quick-update visualization did not fire

The Part-2 assertion globs rglob("fit.png"), but the lens quick-update visualizer writes fit_quick.png (via subplot_fit_quick, output_filename="fit_quick"), not fit.png. So the assertion failed deterministically even though quick-update fired correctly.

Root cause

Verified against a real local Nautilus run of the imaging script: the search produces output/.../mge_linear/<hash>/image/fit_quick.png (+ dataset.png). rglob("fit.png") → 0 matches; rglob("fit_quick.png") → 1 match. The quick-update fired; the test looked for the wrong filename (library artifact name the test was never updated to).

Fix

Update the glob, prints, assertion message and stale comments to fit_quick.png in the three lens scripts. Intent (verify quick-update fires and writes its fit subplot) is unchanged.

Verification

rglob("fit_quick.png") finds the real artifact from the produced output tree (0 → 1). Full end-to-end run is gated on this laptop by the Part-1 hardware-dependent perf assertion (warm_dt < 0.1), which is unrelated to this fix and passes on the faster CI runners.

Scope note

This covers only the lens scripts (autolens_workspace_test). The sibling autogalaxy_workspace_test imaging/interferometer scripts write fit.png (different plotter) yet also fail — that is a different root cause under investigation via a fresh validation run; ellipse likewise. Those are out of scope here.

pending-release

The modeling_visualization_jit Part-2 assertions globbed for fit.png, but the
lens quick-update visualizer writes fit_quick.png (via subplot_fit_quick), so
the assertion always failed with 'no fit.png produced — quick-update did not
fire' even though quick-update fired correctly. Verified against a real
Nautilus run: the imaging search produces .../image/fit_quick.png. Update the
glob, prints, assertion message and stale comments to the correct filename in
the imaging, interferometer and point_source scripts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 10, 2026
@Jammy2211 Jammy2211 merged commit 597c705 into main Jul 10, 2026
4 checks passed
@Jammy2211 Jammy2211 deleted the bug/viz-quick-update-fit-png-glob branch July 10, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant