Skip to content

Add subplot_fit_quick for faster quick-update rendering#546

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/fit-quick-subplot
May 27, 2026
Merged

Add subplot_fit_quick for faster quick-update rendering#546
Jammy2211 merged 2 commits into
mainfrom
feature/fit-quick-subplot

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Adds a 6-panel subplot_fit_quick function (2×3 grid, 200 DPI) for quick-update visualization during sampling. Quick updates now render in ~4s instead of ~9s (the full 12-panel subplot_fit at 300 DPI). Full updates are unchanged.

Layout:

┌──────────┬──────────────┬──────────────┐
│  Data    │ Model Image  │ Normalized   │
│          │              │ Residual Map │
├──────────┼──────────────┼──────────────┤
│ Lens     │ Source Model │ Source Plane │
│ Light    │ Image        │ (Mid Zoom)   │
│Subtracted│              │              │
└──────────┴──────────────┴──────────────┘

API Changes

New function autolens.imaging.plot.fit_imaging_plots.subplot_fit_quick — same signature as subplot_fit minus the plane_index arg. Saves as fit_quick.png at 200 DPI. The plotter's quick-update branch now calls this instead of subplot_fit.

Test Plan

  • Profiling shows ~4s render time (vs ~9s for 12-panel)
  • Manual: run start_here.py with live_visual_update=True and confirm the 6-panel quick subplot appears
  • pytest test_autolens/ — must pass

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits May 27, 2026 12:23
Adds batched_simulate_substructure wrapping simulate_substructure with
jax.vmap over halo params, masks, sheet kappas, and PRNGKeys. Also adds
los_realizations_to_arrays helper to stack multiple LOSSampler outputs
into batched padded arrays. Produces (B, H, W) image stacks.

Ref: PyAutoLens#542 prompt 4 of 4.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6-panel (2x3) subplot at 200 DPI for quick updates during sampling:
Data, Model Image, Normalized Residual Map (top row); Lens Light
Subtracted, Source Model Image, Source Plane Mid Zoom (bottom row).

Quick updates now call subplot_fit_quick instead of the full 12-panel
subplot_fit, cutting render time from ~9s to ~4s. Full updates
continue to use the 12-panel subplot_fit at 300 DPI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 27, 2026
@Jammy2211 Jammy2211 merged commit 0b45703 into main May 27, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/fit-quick-subplot branch May 27, 2026 13:08
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