Skip to content

Render Simple cluster family fits in both planes - #20

Merged
Jammy2211 merged 4 commits into
mainfrom
feature/cluster-family-fit-figures
Nov 24, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
feature/cluster-family-fit-figures

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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_0 source 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.py saves each source-plane family fit at point_<i>/fit.png and each image-plane family fit at point_<i>/fit_image_plane.png using FitPositionsImagePairRepeat. Both come from the full combined VisualizerPoint update.
  • gallery/gallery_build.py documents 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 . and ruff 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-only verified 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.

@Jammy2211
Jammy2211 merged commit 2fb6f1b into main Nov 24, 2026
1 of 2 checks passed
@Jammy2211
Jammy2211 deleted the feature/cluster-family-fit-figures branch November 24, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant