Skip to content

fix: make lensing tutorials release-safe - #16

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/howto-tutorial-release-fixes
Jun 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/howto-tutorial-release-fixes

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Fixes two HowToLens tutorial release failures under the small-dataset build environment. The ray-tracing tutorial now plots a finite source-plane grid when the reduced grid lands on the mass-profile singularity, and the masking tutorial keeps the intentionally over-aggressive annular mask non-empty.

Scripts Changed

  • scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py — filters non-finite source-plane coordinates before plotting the traced source-plane grid.
  • scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py — reduces the example's intentionally too-large annular inner_radius from 1.4 to 0.8 so the bad-mask demonstration remains non-empty on small release datasets.
  • config/build/no_run.yaml — removes stale NEEDS_FIX entries for the repaired tutorials.

Test Plan

  • PYAUTO_TEST_MODE=2 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 python scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py
  • PYAUTO_TEST_MODE=2 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 python scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py
  • NUMBA_CACHE_DIR=/tmp/numba_cache MPLCONFIGDIR=/tmp/matplotlib python ../PyAutoBuild/autobuild/run_python.py howtolens scripts/chapter_1_introduction --report-dir /tmp/pyauto-howto-fixes-howtolens-ch1-final
  • NUMBA_CACHE_DIR=/tmp/numba_cache MPLCONFIGDIR=/tmp/matplotlib python ../PyAutoBuild/autobuild/run_python.py howtolens scripts/chapter_2_lens_modeling --report-dir /tmp/pyauto-howto-fixes-howtolens-ch2-final

Generated with Codex

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jun 9, 2026
@Jammy2211
Jammy2211 merged commit 3ae228b into main Jun 9, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/howto-tutorial-release-fixes branch June 9, 2026 13:31
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

1 participant