Skip to content

Draw the model figure beside every model.info (model-figures phase 6b) - #81

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/model-figures-rollout-lens
Sep 13, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/model-figures-rollout-lens

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Model-figures phase 6b, PyAutoLens surfaces (PyAutoLabs/autolens_workspace#542): every HowToLens tutorial that prints a model's info now draws af.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) and info is 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.yaml gains the model_figure key (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 figure
  • scripts/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 45
  • scripts/chapter_2_lens_modeling/tutorial_9_search_chaining.py — 2 figures
  • scripts/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 figure
  • scripts/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.py — 3 figures
  • scripts/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 figures
  • scripts/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 figure
  • config/output.yaml — model_figure: false added
  • notebooks/** — the 12 twins regenerated via PyAutoHands generate.py howtolens; catalogue byte-identical

Test Plan

  • All 12 touched tutorials run headless under the smoke env profile from the repo root, exit 0, no traceback
  • .github/scripts/run_smoke.py: 50/50 PASS, exit 0 (635 s)
  • check_navigator.py --banners=fail, check_search_memory.py, regenerate_navigator.py howtolens all exit 0
  • Coverage grep: 20/20 model prints have a .figure( call in the following lines
  • Smoke tests pass (CI)

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7

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 Jammy2211 added the pending-release PR queued for the next release build label Sep 13, 2026
@Jammy2211
Jammy2211 merged commit 635ee49 into main Sep 13, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/model-figures-rollout-lens branch September 13, 2026 21:27
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>
@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