Repository navigation
Closed
Description
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
- Create a task worktree for
HowToGalaxyandHowToLensonfeature/howto-tutorial-release-fixes. - Rerun the three failing scripts from the worktree to confirm current failures and avoid stale report assumptions.
- Inspect
HowToGalaxy/scripts/chapter_4_pixelizations/tutorial_2_mappers.pyaround themapper.slim_indexes_for_pix_indexes(...)call and adjust the tutorial to select valid mapper pixel indexes. - Inspect
HowToLens/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.pyaround the traced-grid plotting path and adjust the example to avoid NaN/Inf extents while preserving the teaching point. - Inspect
HowToLens/scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.pyaround mask construction and dataset application, and adjust the example so the mask retains a non-empty convolver region. - Run the three targeted scripts with writable cache dirs.
- Run PyAutoBuild section checks for
howtogalaxy scripts/chapter_4_pixelizations,howtolens scripts/chapter_1_introduction, andhowtolens scripts/chapter_2_lens_modeling.
Key Files
HowToGalaxy/scripts/chapter_4_pixelizations/tutorial_2_mappers.pyHowToLens/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.pyHowToLens/scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py
Original Prompt
Click to expand starting prompt
ok, next fixes?
do it
Metadata
Metadata
Assignees
Labels
No labels
Activity
Jammy2211 commentedon Jun 9, 2026
Tutorial Release Fixes Ready — 2026-06-09
PRs
Status
Both PRs are labelled
pending-releaseand all GitHub CI checks are green.Verification
howtogalaxy scripts/chapter_4_pixelizationsPyAutoBuild section passed.howtolens scripts/chapter_1_introductionPyAutoBuild section passed.howtolens scripts/chapter_2_lens_modelingPyAutoBuild 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.Jammy2211 commentedon Jun 9, 2026
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_pixelizationspassed.howtolens scripts/chapter_1_introductionpassed.howtolens scripts/chapter_2_lens_modelingpassed.