Skip to content

docs: clarify introductory lensing tutorials and ray mappings - #104

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/howto-paired-review
Oct 31, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/howto-paired-review

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Review and correct introductory Tutorials 0–2, incorporating the human-approved prose and code changes from the paired HowToLens/HowToGalaxy review. Clarify grids, profile geometry, intensity and units; regenerate matching notebooks and the navigation catalogue.
Ray tracing now distinguishes the coordinate mapping clearly and introduces a source-plane zoom and matching coloured groups of image/source points. Tutorials 3–5 remain unchanged.

Scripts Changed

  • scripts/chapter_1_introduction/tutorial_0_visualization.py — clarify simulation, image terminology and plotting; create explicit Matplotlib axes for figure sizing.
  • scripts/chapter_1_introduction/tutorial_1_grids_and_galaxies.py — correct grid rotation, elliptical/circularised radii, Sérsic intensity, radial sampling, plotting calls and unit explanations.
  • scripts/chapter_1_introduction/tutorial_2_ray_tracing.py — correct ray-tracing explanations, add zoom/grouped mappings using autoarray.plot, and clarify mass-only lens and Tracer examples.

Tutorial 2 declares ENV: full_datasets so automated runs retain the 101×101 teaching grid and exercise its fixed mapping indexes.

Validation

  • Full local Python 3.12 suite: 49 passed; Tutorial 2 exposed the smoke grid cap. After retaining its 101×101 grid with its in-file environment declaration, its focused rerun passed (1/1). All 50 scripts have passing evidence; full GitHub smoke on the final commit remains required.
  • Strict environment-profile validation: 0 errors, 0 warnings; final environment-declaration retest passed.
  • Three notebooks generated and structurally validated; code matches source excluding standard setup cells.
  • Catalogue regenerated; navigator path/banner checks and git diff --check pass.
  • Actual PyAutoLens zoom and coloured-mapping figures rendered and visually checked.
  • Human block-by-block review and author review of the plotting corrections completed.

Heart RED development override

Human authorization: “Fix those plotting errors, rerun the tests and then prm everything. I approve the fixes and the Heart RED override.”
Exact Heart readiness reason: release validation FAILED (stage integrate).
Development shipping and current-turn merge on green required checks only. No release, failed-test bypass, or branch-protection override.

Tracking: #103

@Jammy2211
Jammy2211 merged commit e986a4a into main Oct 31, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/howto-paired-review branch October 31, 2026 12:45
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