Skip to content

test: cluster visualization via promoted aplt helpers - #152

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cluster-visualization
Jul 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cluster-visualization

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Rewrites scripts/cluster/visualization.py from 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=-1 curve — the promoted helpers draw each source plane's curves in that source's palette colour.

Scripts Changed

  • Rewritten: 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)

  • Effective level: supervised (header: supervised, cap: feature → supervised); one-shot ship authorized in-session, Heart YELLOW acked in-session
  • Gate: script run end-to-end against the library branch (result in issue)
  • Human: merge after the library PR

🤖 Generated with Claude Code

…-plane physics assertion)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PUuWXiS23FvmfQPLvMNjeM
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 9, 2026
@Jammy2211
Jammy2211 merged commit 430e134 into main Jul 9, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/cluster-visualization branch July 9, 2026 08:59
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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