Repository navigation
docs: multi_plane guide — Richardson section shows the adaptive-step fix - #624
Merged
Merged
Conversation
PyAutoGalaxy#593 made LensCalc's NumPy Hessian step adaptive, so the guide's live evaluation on the PyAutoLens#480 fixture now agrees with the exact autodiff and ray-traced oracles. Rewrite the former "not fixed" warning as history plus mechanism: quote the old fixed-step numbers, explain the tolerance / roundoff-floor termination rules and the singular-point-only UserWarning contract, print residuals against both oracles, and drop the bug-prompt pointer. Regenerate the notebook. Closes #623 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NWt7fTXiKUjArRaF1
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.
Closes #623
Summary
PyAutoGalaxy#591 / PR#593 made
LensCalc._hessian_via_richardsonadapt its step per point. With that fix released in autogalaxy 2026.11.7.1, the "A Warning: The NumPy Hessian Step Is Too Coarse Near A Compact Deflector" section ofscripts/guides/advanced/multi_plane.pywas out of date. It still said the defect was "not fixed".What changed in the section, now titled "The NumPy Hessian Near A Compact Deflector: What Used To Fail":
[-0.00694, -0.00221, 0.00139, 0.00246]are quoted as history.rtol = 1e-7) and the roundoff-floor stop.UserWarningcontract: only points that are genuinely singular warn, and nothing raises.notebooks/guides/advanced/multi_plane.ipynbis regenerated. Only the three cells for this section changed.Witness evidence
These are live outputs against the installed autogalaxy 2026.11.7.1, which includes #593. The env is the one the runner resolves from
profile_smoke.yamlplusENV: jax full_datasets.No
UserWarningwas emitted; I ran withPYTHONWARNINGS=always.Testing
run_python.py autolens_workspace scripts --list <guides/advanced/multi_plane.py>):PASS (6.1s).run.py ... notebookscould not run locally becausenbformat/nbconvertare not installed in this environment. Instead I ran every code cell of the regenerated notebook, in order, as one script under the same runner env. It exited 0 and printed the same numbers.scripts/check_sizes.shreports OK.ipynb-py-convertwas not available in this environment, sogenerate.pycould not run. I ran the officialadd_notebook_quotes.pystep and checked my cell splitting against the committed notebook: every cell matched apart from leading-blank-line whitespace in unchanged code cells. I then spliced the three changed cells into the existing notebook and wrote it withbuild_util.dump_notebook_like, so the metadata and Colab/Gemini cells are untouched. The next fullgenerate.pyrun should produce no diff here, but it is worth confirming.Tier: notify — merge mode: human /prm (batch 2026-11-08-am contract: ends at PR-open)
Generated by Claude Code