Repository navigation
Draw the model figure beside every model.info (model-figures phase 6b) - #81
Merged
Merged
Conversation
Model-figures phase 6b (PyAutoLens surfaces): each tutorial that prints a model's info now draws af.ModelPlotter(model).figure() beside it and teaches the map (structure) vs legend (priors) reading — lens light, mass and source cards, linear-profile solved pills, the extra-galaxy and multi-galaxy frames, the group- and cluster-scale plates. config/output.yaml gains the model_figure key (off). Notebooks and catalogue regenerated. Refs PyAutoLabs/autolens_workspace#542 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7
Jammy2211
added a commit
that referenced
this pull request
Sep 30, 2026
Resolve README.md conflict with main's full-contents README (#81/#92 equivalent) and the release-bot Colab tag bumps: keep this branch's header, assistant section and contents list; repin every Colab link to main's current tag 2026.9.27.2; take main's "Follow the ... then clone" install wording. Co-Authored-By: Claude Opus 5.5 <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
Model-figures phase 6b, PyAutoLens surfaces (PyAutoLabs/autolens_workspace#542): every HowToLens tutorial that prints a model's
infonow drawsaf.ModelPlotter(model).figure()beside it and teaches the reading: the figure is the map (which galaxy owns which profile and parameter; what is fixed, shared, related, asserted or solved) andinfois the legend (priors and values). Chapter 2's first tutorial introduces the idea; the others say what to look for in each figure, from solved linear-profile pills and MGE plates through the extra-galaxy and multi-galaxy frames to the group-, cluster- and weak-lensing scale models. Every badge, plate and footer named in the prose was read off a rendered figure first.config/output.yamlgains themodel_figurekey (off, same comment as autolens_workspace) so the output-folder pointer is true. One prose correction rode along: tutorial 5 said "20 Gaussians in total" where the code composes 45 (30 lens, 15 source), which the new figure's footer makes visible.Chapters 1, 3 and optional compose no models and are untouched. SLaM stages are deferred to their own prompt by decision.
Opened under Heart RED
release validation FAILED (stage integrate)(unrelated autolens integrate scripts) with explicit human authorisation on 2026-09-13; merge stays human via/prm.Scripts Changed
scripts/chapter_2_lens_modeling/tutorial_1_non_linear_search.py— 2 figures; the map/legend opener, then "priors move the legend, not the map"scripts/chapter_2_lens_modeling/tutorial_2_practicalities.py— 1 figurescripts/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.py— 2 figures (20-parameter map; light-traces-mass bracket)scripts/chapter_2_lens_modeling/tutorial_5_linear_profiles.py— 2 figures (solved pills; MGE plates); Gaussian count corrected to 45scripts/chapter_2_lens_modeling/tutorial_9_search_chaining.py— 2 figuresscripts/chapter_2_lens_modeling/tutorial_10_prior_passing.py— 2 figures (same map, changed legend)scripts/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.py— 1 figurescripts/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.py— 3 figuresscripts/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.py— 1 figure (amber expression pills)scripts/chapter_4_scaling_up_lensing/tutorial_4_group_scale.py— 2 figuresscripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py— 1 figure (three plates standing for 13 components)scripts/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.py— 1 figureconfig/output.yaml—model_figure: falseaddednotebooks/**— the 12 twins regenerated via PyAutoHandsgenerate.py howtolens; catalogue byte-identicalTest Plan
.github/scripts/run_smoke.py: 50/50 PASS, exit 0 (635 s)check_navigator.py --banners=fail,check_search_memory.py,regenerate_navigator.py howtolensall exit 0.figure(call in the following linesGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7