Skip to content

docs: rebalance ray tracing and merge lensing formalism #105

Closed

Description

@Jammy2211

Overview

Rebalance HowToLens Chapter 1: Tutorial 2 teaches practical ray tracing, units and multiple galaxies; Tutorial 3 merges the former Tutorials 3 and 5 into an optional mathematical explanation using one tracer.

Plan

  • Apply human-approved Units and five multi-galaxy blocks to Tutorial 2.
  • Review Tutorial 3 in batches of five prose/code blocks before applying them.
  • Retain intuitive critical-curve/caustic explanations alongside their mathematics; assume the lens equation from Tutorial 2.
  • Retire the separate Tutorial 5 and update navigation/references after review.
  • Regenerate notebooks/catalogue and validate the resulting scripts.

Tier: undeclared — merge mode: human /prm.

Implementation

Repository: HowToLens; clean main at e986a4a before work.
Branch: feature/howtolens-ray-tracing-merge
Worktree: /home/jammy/Code/PyAutoLabs/.worktrees/howtolens-ray-tracing-merge/HowToLens
Canonical files: scripts/chapter_1_introduction/tutorial_2_ray_tracing.py, tutorial_3_more_ray_tracing.py, tutorial_5_lensing_formalism.py.
Tutorial 2: preserve existing lesson, append Units, More Complexity and Multi Galaxy Ray Tracing, replace Wrap Up and correct opening signposts/contents.
Tutorial 3: initial setup, concise code, distances (including reduced deflections), convergence, deflections, potential, shear/magnification, critical curves/caustics, Einstein radius, time delays.
Use one tracer throughout formalism; no formalism_tracer alias. Do not apply unapproved prose.
Validate syntax, execute the affected lesson with actual plotting, then regenerate through PyAutoHands and perform required ship checks when review is complete.

Approval and current phase

Human approved the five Tutorial 2 multi-galaxy blocks, and moving Units to Tutorial 2. This task does not carry merge authority.
Human said: "I approve development on heart red".
RED reasons reported: release validation FAILED (stage integrate); PyAutoHeart/workflows/Release Integrate: failure; Release readiness: release validation FAILED (stage integrate); autogalaxy: red; Release validation: NOT release_ready — v2026.10.31.1.dev85201 profile=release (2026-10-31T08:04:07+00:00); validation_report/stages/integrate: fail; autolens_profiling: red; Worktree drift: 0 orphan / 0 missing / 1 dirty.

Activity

  1. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Implemented in #106 (commit 3cf2463). All prose approved in five-block reviews; human also approved shifting Tutorials 6 onward down by one.

    Validation via the Heart smoke-test workflow: 49 passed, 0 failed, Python 3.12, profile_smoke.yaml. Six generated notebooks pass format/source parity, all five changed Chapter 1 Markdown lessons executed successfully, and 38 tutorial completion checks pass. Navigation, catalogue, local assets and whitespace checks pass. Curves and fixed-source Fermat surface were also checked numerically and visually.

    Heart RED development override: human said “I approve development on heart red”. Current exact reason: release validation FAILED (stage integrate). Scope is development commit/push/PR only; no release or failed-check bypass. PR remains open for human /prm after required checks pass.

  2. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped in PR #106, merged as e807cf9. All eight CI jobs passed, including Python 3.12 and 3.13 smoke tests. Tutorial split, optional mathematics, numbering and regenerated outputs are complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions