Repository navigation
Render Simple cluster family fits in both planes - #20
Merged
Merged
Conversation
This was referenced Nov 24, 2026
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
The Simple cluster gallery now shows a family fit for each source under both the source-plane and image-plane likelihoods. The example offsets the
point_0source y coordinate by 3 mas to show how a small model error affects its individual images. Both runs use the tracked simulated positions.The two top-level fit maps share a ±30″ square sky field and family markers. Both show all seven observed images and the two source-plane χ² values. The whole-cluster dataset views use the same sky frame, asinh stretch and family symbols. The cluster producer passes an explicit family index for the individual dataset, fit and solver views.
PyAutoLabs/PyAutoLens#883
Standalone point-source overlays use grayscale and share the cluster’s amber observed-position circles. Their linear and wide-field logarithmic stretches retain their previous limits, orientation and coordinates. The per-image χ² and source-plane panels keep their image colours.
Scripts Changed
scripts/cluster/visualization.pysaves each source-plane family fit atpoint_<i>/fit.pngand each image-plane family fit atpoint_<i>/fit_image_plane.pngusingFitPositionsImagePairRepeat. Both come from the full combinedVisualizerPointupdate.gallery/gallery_build.pydocuments the model offset in the generated gallery.Upstream PR
PyAutoLabs/PyAutoLens#884
Gallery CI checks out PyAutoLens main. Run the gallery checks again after the upstream PR merges.
Test Plan
ruff check .andruff format --check .pytest scripts/misc/test -q(17 passed)Ran all nine other gallery producers and both standalone cluster source stages. Rendered the final cluster combined stages separately after a library update.
bash gallery/gallery_run.sh --build-onlyverified that the committed gallery and manifest match the PNGs.Compared both likelihoods' per-image terms and totals with the reviewed Simple cluster values.
Confirmed repeat renders of both top-level maps were byte-identical. The final gallery follow-up refreshes 14 cluster PNGs and their manifest hashes. All published image paths are preserved.
Rendered the two standalone likelihood examples with grayscale backgrounds and outlined amber observed positions. They refresh ten PNGs and the solver teaching GIF. Both per-image diagnostic PNGs reproduce byte for byte against the previous renderer with the same inputs. A repeat render reproduced all changed gallery assets.
Generated by the PyAutoLabs agent workflow.