Skip to content

docs: consolidate Chapter 1 ray tracing tutorials - #106

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/howtolens-ray-tracing-merge
Oct 31, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/howtolens-ray-tracing-merge

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Tutorial 2 now introduces angular-to-physical units and a four-galaxy tracer, while Tutorial 3 combines the intuitive ray-tracing explanations with the optional lensing mathematics formerly in Tutorial 5. Readers can follow the physical explanations and figures without working through every equation.

Remove the separate lensing-formalism lesson and renumber Data, Fitting and Summary to 5–7, including filenames, dataset-generation references, chapter links and the discovery catalogue. Regenerate the notebooks and executed Markdown pages with fresh figures.

Scripts Changed

  • scripts/chapter_1_introduction/tutorial_2_ray_tracing.py: add units, lens light, elliptical mass, external shear, a satellite and two sources.
  • scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py: one-tracer formalism, reduced deflections, convergence, potential, shear, magnification, critical curves/caustics, Einstein mass and fixed-source Fermat potential; includes the 2D deflection-difference map and explicit shallow-profile experiment.
  • scripts/chapter_1_introduction/tutorial_5_lensing_formalism.py: retired into Tutorial 3.
  • scripts/chapter_1_introduction/tutorial_{5_data,6_fitting,7_summary}.py: renumber lessons and update the fitting lesson's simulation dependency.
  • scripts/chapter_3_pixelizations/tutorial_5_bayesian_formalism.py: point its Chapter 1 reference to Tutorial 3.

Validation

  • Official Heart howtolens smoke run: 49 passed, 0 failed (Python 3.12, profile_smoke.yaml).
  • Tutorials 2 and 3 executed with real plotting; all five changed Chapter 1 rendered lessons executed successfully.
  • Six regenerated notebooks pass format validation and source/code parity; catalogue, navigation, local links and image references pass.
  • All 38 tutorial completion checks pass; staged whitespace checks pass.
  • Verified finite 2D deflection differences, SIS/shallow-profile critical curves, Einstein mass and the fixed-source Fermat surface.

The scientific prose was reviewed and approved by the human in five-block batches. Critical curves use the teaching grid's pixel scale to avoid the false central contour caused by default resampling of a singular isothermal lens. Automated runs retain Tutorial 3's full field so the Einstein ring and radial experiment remain resolved.

Heart RED development override

The human authorized this task: “I approve development on heart red”.
Current exact Heart reason: release validation FAILED (stage integrate).
Development commit/push/PR only; no release or failed-check bypass. Merge remains a separate human action after required checks pass.

Closes #105.

Move units and multiple galaxies into Tutorial 2, merge optional lensing mathematics into Tutorial 3, and renumber the remaining lessons. Regenerate notebooks, rendered pages and navigation.

Agent: Codex
@Jammy2211
Jammy2211 merged commit e807cf9 into main Oct 31, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/howtolens-ray-tracing-merge branch October 31, 2026 15:42
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.

docs: rebalance ray tracing and merge lensing formalism

1 participant