Skip to content

feat(weak): fill simulator viz placeholders with aplt calls (PyAutoLens #496) - #186

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/weak-visualization
May 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/weak-visualization

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Replace the two # TODO(2_visualization.md) placeholders in scripts/weak/simulator.py with real calls to the new aplt helpers shipped in PyAutoLens PR #523. End-to-end run now writes subplot_weak_dataset.png (2×2 mosaic) and shear_yx.png (single-panel quiver) alongside the existing dataset.json / tracer.json outputs.

Step 2 of the weak-lensing series — this is the workspace follow-up to PyAutoLens #523 (library aplt plotters). Library and workspace merge together per the library-first gate.

Test Plan

  • python scripts/weak/simulator.py runs end-to-end and writes both PNGs to dataset/weak/simple/ (verified locally — both files materialise; ~7 KB each).
  • The two # TODO(2_visualization.md) markers are gone from the script.
  • grep "TODO(2_visualization" scripts/weak/ → no matches.

Cross-reference

🤖 Generated with Claude Code

Replace the two `# TODO(2_visualization.md)` placeholders in
scripts/weak/simulator.py with real calls to the new aplt helpers shipped in
PyAutoLens #523 (issue #496):

- aplt.subplot_weak_dataset → 2x2 mosaic of shear field, noise map,
  |gamma|, and phi
- aplt.plot_shear_yx_2d → single-panel headless-quiver of the shear field

Adds `import autolens.plot as aplt` and updates the `__Visualize__`
docstring/notebook-cell prose to describe the spin-2 headless-segment
convention.

Closes step 2 of the weak-lensing series workspace follow-up. End-to-end run
verified locally: simulator writes dataset.json, tracer.json, plus
subplot_weak_dataset.png and shear_yx.png under dataset/weak/simple/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 18, 2026
@Jammy2211
Jammy2211 merged commit 888c63f into main May 18, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/weak-visualization branch May 18, 2026 19:55
@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