Skip to content

docs: review paired introductory tutorials #103

Closed

Description

@Jammy2211

Overview

Ship the human-reviewed introductory tutorial corrections: HowToLens Tutorials 0–2 and HowToGalaxy Tutorials 0–1. Preserve the five-block approval process and leave Tutorials 3–5 unchanged for the maintainer's planned rewrite.

Plan

  • Ship the accepted source edits and regenerate their notebooks and both catalogues with PyAutoHands.
  • Validate both tutorial workspaces, then open one PR per affected repository.
  • Merge only after all required checks pass; retain the continuing tutorial-review prompt for later chapters.

Tier: judge — merge mode: human /prm (explicitly authorized in the current conversation).

Implementation

Both worktrees are on feature/howto-paired-review under /home/jammy/Code/PyAutoLabs/.worktrees/howto-paired-review. The five edited scripts are chapter_1_introduction/tutorial_0_visualization.py and tutorial_1_grids_and_galaxies.py in both repositories, plus HowToLens tutorial_2_ray_tracing.py. Changes cover grid geometry, elliptical and circularised radii, Sérsic normalization, intensity/units, plotting APIs, deflection interpretation and coloured mappings. No library changes.

Heart RED development override

Human authorization: “I approve you to prm and override heart RED”.
Exact current readiness reason: release validation FAILED (stage integrate).
This authorizes development shipping and a checked merge, not release or bypassing tests. Syntax/diff checks passed; five notebooks generated and structurally validated; full runtime smoke validation pending. Runtime results will be recorded before shipping.

Original request

“ok lets $prm all our work cause I am going to make bigger changes to tutorial 3, 4 and 5 in one go before we contnue this editing”

Continuing task: PyAutoMind/draft/docs/howtolens/tutorial_correctness_and_howtogalaxy_parity.md. Checkpoint: PyAutoMind/draft/docs/howtolens/paired_tutorial_review_resume.md.

Activity

  1. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipping validation — blocked by script failures

    Human authorization: “I approve you to prm and override heart RED”.
    Exact Heart reason: release validation FAILED (stage integrate). The override does not waive failed script checks.

    Repository Passed Failed
    HowToLens 48 2
    HowToGalaxy 31 1

    Five notebooks generated with PyAutoHands and structurally validated; notebook code matches source apart from standard setup injection. Both catalogues regenerated; both navigator path/banner checks passed.

    HowToLens: tutorial_0_visualization.py

    Traceback (most recent call last):
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 101, in <module>
        main()
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 97, in main
        runpy.run_path(str(path), run_name='__main__')
      File "<frozen runpy>", line 287, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File "/home/jammy/Code/PyAutoLabs/.worktrees/howto-paired-review/HowToLens/scripts/chapter_1_introduction/tutorial_0_visualization.py", line 121, in <module>
        aplt.plot_array(
    TypeError: plot_array() got an unexpected keyword argument 'figsize'
    

    HowToLens: tutorial_2_ray_tracing.py

    Traceback (most recent call last):
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 101, in <module>
        main()
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 97, in main
        runpy.run_path(str(path), run_name='__main__')
      File "<frozen runpy>", line 287, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File "/home/jammy/Code/PyAutoLabs/.worktrees/howto-paired-review/HowToLens/scripts/chapter_1_introduction/tutorial_2_ray_tracing.py", line 454, in <module>
        aplt.plot_grid(
    TypeError: plot_grid() got an unexpected keyword argument 'extent'
    

    HowToGalaxy: tutorial_0_visualization.py

    Traceback (most recent call last):
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 101, in <module>
        main()
      File "/home/jammy/Code/PyAutoLabs/organs/PyAutoHands/autohands/smoke_dependencies.py", line 97, in main
        runpy.run_path(str(path), run_name='__main__')
      File "<frozen runpy>", line 287, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File "/home/jammy/Code/PyAutoLabs/.worktrees/howto-paired-review/HowToGalaxy/scripts/chapter_1_introduction/tutorial_0_visualization.py", line 120, in <module>
        aplt.plot_array(
    TypeError: plot_array() got an unexpected keyword argument 'figsize'
    

    Diagnosis: public autolens.plot/autogalaxy.plot wrappers do not expose the underlying autoarray.plot figsize/extent/indexes options. Tutorial 0 can size an explicit Matplotlib axes; Tutorial 2 can call autoarray.plot.plot_grid for extent/index groups. No library change is required. Corrections are not applied during the failed ship run.

    No tutorial commit, push, PR or merge. Both worktrees remain intact. Tutorials 3–5 remain untouched.

  2. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Plotting corrections validated; shipping under approved Heart RED override

    Human: “Fix those plotting errors, rerun the tests and then prm everything. I approve the fixes and the Heart RED override.”
    Exact Heart reason: release validation FAILED (stage integrate).

    • HowToGalaxy: full Python 3.12 smoke, 32 passed / 0 failed.
    • HowToLens: full Python 3.12 smoke, 49 passed; Tutorial 2's grid-cap failure fixed in its smoke profile, then focused retest 1 passed / 0 failed. Every script has passing evidence; final-commit full GitHub suites are required before merge.
    • All five generated notebooks structurally valid and code-equivalent to source, excluding standard setup cells; both catalogues and path/banner checks pass.
    • Actual PyAutoLens mapping and zoom figures rendered and visually inspected.
    • Human block-by-block review completed; author review of plotting corrections completed. No independent reviewer claimed.

    No library changes. Tutorials 3–5 remain untouched. No release or failed-CI bypass; merge only once all GitHub runs and jobs pass.

    HowToGalaxy PR: PyAutoLabs/HowToGalaxy#93

  3. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    HowToGalaxy PR #93 merged after all 3 workflow runs and 8 jobs passed (merge ead53e6). HowToLens PR #104 now uses the required in-file full_datasets declaration; strict profile validation and Tutorial 2 retest pass. Final head 79da363 awaits full CI. No release or failed-check bypass.

  4. Jammy2211 commented on Oct 31, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped

    Both final PR heads passed all 3 workflow runs / 8 jobs, including full smoke on Python 3.12 and 3.13. No required checks were bypassed. Source, generated notebooks and catalogues are included. Heart RED development override and explicit merge authority were supplied by the human; no release was performed.

    Completed scope: Lens Tutorials 0–2, Galaxy Tutorials 0–1. Tutorials 3–5 remain untouched for the human's planned rewrite. The broader paired tutorial review continues separately.

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