Skip to content

docs(simulator): mirror autolens_workspace no_lens_light simulator + retarget tutorial subprocess paths#13

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/tutorial-simulator-paths
May 28, 2026
Merged

docs(simulator): mirror autolens_workspace no_lens_light simulator + retarget tutorial subprocess paths#13
Jammy2211 merged 1 commit into
mainfrom
feature/tutorial-simulator-paths

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Eight HowToLens chapter-4 pixelization tutorials subprocess to scripts/imaging/features/no_lens_light/simulator.py (writes dataset simple__no_lens_light) — an autolens_workspace path that doesn't exist in this repo. All fail with CalledProcessError ... exit 2. NEEDS_FIX-parked 48 days.

The tutorials all do pixelized-source-only modelling with a mass-only lens — exactly the model↔data the simple__no_lens_light dataset matches.

Mirror the autolens_workspace simulator into HowToLens as a verbatim copy + update 8 tutorial subprocess paths.

Affected tutorials

  • chapter_4_pixelizations/tutorial_2_mappers.py
  • chapter_4_pixelizations/tutorial_3_inversions.py
  • chapter_4_pixelizations/tutorial_4_bayesian_regularization.py
  • chapter_4_pixelizations/tutorial_5_borders.py
  • chapter_4_pixelizations/tutorial_6_lens_modeling.py
  • chapter_4_pixelizations/tutorial_7_adaptive_pixelization.py
  • chapter_4_pixelizations/tutorial_10_brightness_adaption.py
  • chapter_4_pixelizations/tutorial_11_adaptive_regularization.py

Test plan

  • python scripts/simulator/no_lens_light.py writes dataset/imaging/simple__no_lens_light/....
  • PYAUTO_TEST_MODE=2 python scripts/chapter_4_pixelizations/tutorial_5_borders.py runs to completion.
  • Next autobuild run_all howtolens --timeout-secs 300 flips the 8 affected tutorials from FAIL to PASS.

Related

  • HowToGalaxy twin (2 mirrors + 11 tutorial edits) shipping in parallel.

🤖 Generated with Claude Code

…retarget tutorial subprocess paths

Eight chapter-4 pixelization tutorials subprocess to
`scripts/imaging/features/no_lens_light/simulator.py` (writes dataset
`simple__no_lens_light`) — an autolens_workspace path that doesn't
exist in this repo. Every affected tutorial exits 2 (file not found)
during the auto-simulate step.

The tutorials all do pixelized-source-only modelling with a mass-only
lens, which is exactly what the `simple__no_lens_light` dataset
provides (isothermal lens mass + Sersic source, no lens light).

Mirror the workspace simulator into HowToLens as
`scripts/simulator/no_lens_light.py` (verbatim copy) and update the
8 tutorial subprocess paths. No tutorial logic changes; the dataset
name (`simple__no_lens_light`) already used by the tutorials matches
what the new local simulator writes.

Verified locally:
- `python scripts/simulator/no_lens_light.py` writes
  `dataset/imaging/simple__no_lens_light/{data.fits, noise_map.fits,
  psf.fits, positions.json, ...}`.
- `python scripts/chapter_4_pixelizations/tutorial_5_borders.py` runs
  to completion under `PYAUTO_TEST_MODE=2`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 0e4209e into main May 28, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/tutorial-simulator-paths branch May 28, 2026 21:29
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