Skip to content

fix: HowTo tutorial release failures #15

Closed

Description

@Jammy2211

Overview

Fix the remaining unblocked HowTo tutorial release failures. The current release report shows one HowToGalaxy pixelization tutorial failure and two HowToLens tutorial failures; the previous Autofit database scrape group was rerun against the current stack and now passes.

Plan

  • Reproduce each tutorial failure in an isolated task worktree.
  • Fix the HowToGalaxy mapper tutorial so it requests valid mapper pixel indexes under the current mapper API/data shape.
  • Fix the HowToLens ray-tracing tutorial so plotted traced grids do not contain invalid coordinates or extents.
  • Fix the HowToLens masking-and-positions tutorial so the mask keeps a valid imaging region for convolution.
  • Rerun the three targeted scripts, then rerun the relevant PyAutoBuild tutorial sections.
Detailed implementation plan

Affected Repositories

  • HowToLens (primary)
  • HowToGalaxy

Work Classification

Workspace/tutorial work.

Branch Survey

Repository Current Branch Dirty?
./HowToGalaxy main clean
./HowToLens main clean

Suggested branch: feature/howto-tutorial-release-fixes
Worktree root: ~/Code/PyAutoLabs-wt/howto-tutorial-release-fixes/

Implementation Steps

  1. Create a task worktree for HowToGalaxy and HowToLens on feature/howto-tutorial-release-fixes.
  2. Rerun the three failing scripts from the worktree to confirm current failures and avoid stale report assumptions.
  3. Inspect HowToGalaxy/scripts/chapter_4_pixelizations/tutorial_2_mappers.py around the mapper.slim_indexes_for_pix_indexes(...) call and adjust the tutorial to select valid mapper pixel indexes.
  4. Inspect HowToLens/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py around the traced-grid plotting path and adjust the example to avoid NaN/Inf extents while preserving the teaching point.
  5. Inspect HowToLens/scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py around mask construction and dataset application, and adjust the example so the mask retains a non-empty convolver region.
  6. Run the three targeted scripts with writable cache dirs.
  7. Run PyAutoBuild section checks for howtogalaxy scripts/chapter_4_pixelizations, howtolens scripts/chapter_1_introduction, and howtolens scripts/chapter_2_lens_modeling.

Key Files

  • HowToGalaxy/scripts/chapter_4_pixelizations/tutorial_2_mappers.py
  • HowToLens/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py
  • HowToLens/scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py

Original Prompt

Click to expand starting prompt

ok, next fixes?

do it

Activity

  1. Jammy2211 commented on Jun 9, 2026

    @Jammy2211
    CollaboratorAuthor

    Tutorial Release Fixes Ready — 2026-06-09

    PRs

    Status

    Both PRs are labelled pending-release and all GitHub CI checks are green.

    Verification

    • howtogalaxy scripts/chapter_4_pixelizations PyAutoBuild section passed.
    • howtolens scripts/chapter_1_introduction PyAutoBuild section passed.
    • howtolens scripts/chapter_2_lens_modeling PyAutoBuild section passed.

    Notes

    The original HowToGalaxy mapper, HowToLens ray-tracing, and HowToLens masking tutorial failures are fixed. Two of the failures were release-environment-specific under PYAUTO_SMALL_DATASETS=1.

  2. Jammy2211 commented on Jun 9, 2026

    @Jammy2211
    CollaboratorAuthor

    Shipped — 2026-06-09

    PRs

    Summary

    Merged the HowTo tutorial release fixes. The fixed scripts now pass in the same small-dataset release environment used by PyAutoBuild.

    Verification

    • howtogalaxy scripts/chapter_4_pixelizations passed.
    • howtolens scripts/chapter_1_introduction passed.
    • howtolens scripts/chapter_2_lens_modeling passed.
    • GitHub CI passed on both PRs.
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