Skip to content

Add model figures to the model cookbooks (PyAutoFit#1613) - #152

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/model-figures-renderer
Sep 11, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/model-figures-renderer

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Workspace half of the model-figures epic phase 2 (PyAutoFit#1613). The three model cookbooks now draw the model figure next to model.info via af.ModelPlotter(model).figure() — the figure is the map (which component owns which parameter; shared, fixed, related and constrained states), model.info stays the legend (priors and values). Notebooks regenerated from the scripts. config/output.yaml gains the new key model_figure: false (opt-in model.png beside model.info for every search; an absent key means off).

Needs the library branch: workspace CI checks out the same-named PyAutoFit branch, and this PR merges behind the library-first gate after PyAutoFit#1614.

Scripts Changed

  • scripts/cookbooks/model.py — model figure after model.info in Model Customization (chained centre, assertions), Tuple Parameters (2D tag), the customised Collection (fixed values, assertion) and Extensible Models (plates); Wrap Up sentence on the model_figure output key
  • scripts/cookbooks/multi_level_model.py — model figure for the multi-level Collection and the customised group_level (fixed higher_level_centre, shared normalization)
  • scripts/cookbooks/multiple_datasets.py — model figure of factor_graph.global_prior_model for the shared, variable and relational compositions
  • config/output.yaml — new key model_figure: false
  • notebooks/cookbooks/{model,multi_level_model,multiple_datasets}.ipynb — regenerated from the scripts

Upstream PR

PyAutoLabs/PyAutoFit#1614

Test Plan

  • scripts/cookbooks/model.py, multi_level_model.py, multiple_datasets.py run headless end to end in the task worktree with the library branch on PYTHONPATH.
  • Notebooks regenerated with PyAutoHands generate.py autofit; only the three twins committed.
  • Workspace CI (smoke, same-named PyAutoFit branch).

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_0178yLU9v19GtACcRPFggjGa

Draw the model figure (af.ModelPlotter, PyAutoFit#1614) beside model.info in
the model, multi_level_model and multiple_datasets cookbooks, regenerate their
notebooks, and add the new output.yaml key `model_figure: false` (opt-in
model.png per search; absent key means off).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0178yLU9v19GtACcRPFggjGa
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 11, 2026
@Jammy2211
Jammy2211 merged commit 3ed36e3 into main Sep 11, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/model-figures-renderer branch September 11, 2026 14:06
@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