Repository navigation
docs: simplify the model figure prose to two fixed paragraphs - #83
Merged
Merged
Conversation
The per-figure reading commentary rolled out in phase 6 is information overload: the figure should be self-explanatory. Every first-figure prose block now collapses to the same two paragraphs, which say what the figure shows and point at `model.info` for the numbers. All 12 tutorials with a figure site are swept. Where a trailing paragraph taught the tutorial's own science or method rather than describing the figure, that sentence is preserved as a third paragraph, reworded so it stands on its own without referring to pills, cards, badges or plates. Two tutorials (chapter 2 tutorial 5, chapter 4 tutorial 4) had nothing of that kind and collapse entirely. Short notes at second and later figure sites are untouched. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LPCvGNHahZqynPyEfMijsb
Notebooks are generated, never hand-edited: 12 twins regenerated from their scripts with ../PyAutoHands/autohands/generate.py howtolens. llms-full.txt and workspace_index.json were rewritten unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LPCvGNHahZqynPyEfMijsb
The first-figure blocks were collapsed to the canonical two paragraphs in the previous commit; the notes at second and third figure sites still described how the figure renders a model rather than the model. Every such note is rewritten, not deleted: clauses whose subject is a pill, plate, badge, card, footer count or "the map" / "the legend" are dropped, and every statement of fact about the model, and every sentence teaching the tutorial's own science or method, is kept and reworded to stand on its own. 8 notes across 7 tutorials. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LPCvGNHahZqynPyEfMijsb
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.
Applies the new model-figure prose standard to the HowToLens tutorials. Wave 1 of phase 6b (PR #81) added these figures; this sweeps the prose it wrote.
Scripts Changed
12 tutorials, 12 regenerated notebook twins, across
scripts/chapter_2_lens_modeling/andscripts/chapter_4_scaling_up_lensing/.Three commits: collapse the per-figure prose (12 files), regenerate the twins, then strip figure vocabulary from the later-site notes (8 notes across 7 tutorials).
The standard
Every first-figure block — opener, map/legend paragraph, and the file-specific commentary after it — becomes:
Half of these blocks carried no
**map**token at all and were found only by a whitespace-flattened search — in two tutorials the token wraps across a line break, and six more carried per-figure commentary in a different form.Teaching content preserved
These are tutorials, so several blocks mixed figure description with teaching the tutorial's own subject. Collapsing them wholesale would have deleted real pedagogy, so 10 sentences were kept, reworded to stand alone without referring to pills, cards or the footer. For example
tutorial_9_search_chaining.pykeeps:and
chapter_4/tutorial_6_weak_lensing.pykeeps the point that in weak lensing the source galaxies are the data, a catalogue of measured shapes, so there is no source light to fit.Verification
scripts/*.pyandnotebooks/*.ipynb: zero non-exempt occurrences of**map**,**legend**, pill, badge, plate, greyed or footer-count language. The one science use of "the map" (the mass-sheet degeneracy note intutorial_6_weak_lensing.py) is untouched.PyAutoHands/autohands/generate.py, never hand-edited;check_navigator.pypasses.No API changes — tutorial prose only.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LPCvGNHahZqynPyEfMijsb