docs(simulator): mirror autolens_workspace no_lens_light simulator + retarget tutorial subprocess paths#13
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Eight HowToLens chapter-4 pixelization tutorials subprocess to
scripts/imaging/features/no_lens_light/simulator.py(writes datasetsimple__no_lens_light) — an autolens_workspace path that doesn't exist in this repo. All fail withCalledProcessError ... 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_lightdataset 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.pychapter_4_pixelizations/tutorial_3_inversions.pychapter_4_pixelizations/tutorial_4_bayesian_regularization.pychapter_4_pixelizations/tutorial_5_borders.pychapter_4_pixelizations/tutorial_6_lens_modeling.pychapter_4_pixelizations/tutorial_7_adaptive_pixelization.pychapter_4_pixelizations/tutorial_10_brightness_adaption.pychapter_4_pixelizations/tutorial_11_adaptive_regularization.pyTest plan
python scripts/simulator/no_lens_light.pywritesdataset/imaging/simple__no_lens_light/....PYAUTO_TEST_MODE=2 python scripts/chapter_4_pixelizations/tutorial_5_borders.pyruns to completion.autobuild run_all howtolens --timeout-secs 300flips the 8 affected tutorials from FAIL to PASS.Related
🤖 Generated with Claude Code