Add subplot_fit_quick for faster quick-update rendering#546
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a 6-panel
subplot_fit_quickfunction (2×3 grid, 200 DPI) for quick-update visualization during sampling. Quick updates now render in ~4s instead of ~9s (the full 12-panelsubplot_fitat 300 DPI). Full updates are unchanged.Layout:
API Changes
New function
autolens.imaging.plot.fit_imaging_plots.subplot_fit_quick— same signature assubplot_fitminus theplane_indexarg. Saves asfit_quick.pngat 200 DPI. The plotter's quick-update branch now calls this instead ofsubplot_fit.Test Plan
start_here.pywithlive_visual_update=Trueand confirm the 6-panel quick subplot appearspytest test_autolens/— must pass🤖 Generated with Claude Code