test: cluster visualization via promoted aplt helpers#152
Merged
Conversation
…-plane physics assertion) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PUuWXiS23FvmfQPLvMNjeM
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
Rewrites
scripts/cluster/visualization.pyfrom the raw-matplotlib prototype into the integration test for the promoted cluster aplt helpers (PyAutoLabs/PyAutoLens#578, issue PyAutoLabs/PyAutoLens#577). Five phases, one per helper (plot_positions_overlay,plot_image_group_zooms,plot_critical_curves,plot_caustics,subplot_cluster_dataset), each asserting its PNG lands non-empty, plus a physics assertion that every source plane recovers at least one tangential critical curve and that curve radius grows with source redshift.The per-plane critical-curve phase supersedes the prototype's single
plane_j=-1curve — the promoted helpers draw each source plane's curves in that source's palette colour.Scripts Changed
scripts/cluster/visualization.py(raw matplotlib → aplt helpers; same dataset auto-simulation flow, same clean-images-dir convention, stronger assertions).Merge gate
Library-first: merge PyAutoLabs/PyAutoLens#578 before this PR (the script imports the new aplt helpers).
Validation checklist (--auto run — in-session directives)
🤖 Generated with Claude Code