Skip to content

docs(tutorial_5): correct stale parameter-filtering prose#25

Merged
Jammy2211 merged 1 commit into
mainfrom
fix/tutorial-5-filtering-prose
Jul 22, 2026
Merged

docs(tutorial_5): correct stale parameter-filtering prose#25
Jammy2211 merged 1 commit into
mainfrom
fix/tutorial-5-filtering-prose

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Found while clearing this tutorial's stale NEEDS_FIX marker (PyAutoLabs/PyAutoFit#1411). Script always exited 0 — this is teaching correctness, not a crash.

The tutorial composes a two-component model (Gaussian + Exponential = 6 parameters), but the without_paths section claimed removing gaussian.centre leaves "2 parameters; the normalization and sigma" — stale text from when it fitted a Gaussian alone. The run prints 5. without_paths was behaving correctly the whole time.

A learner saw five numbers where the text promised two, with no explanation — undermining the exact filtering concept the section teaches.

Also fixed in the same section:

  • in-profile_1d with the PyAutoFIT APIin-line with the PyAutoFit API (bad find/replace of lineprofile_1d; verified the only occurrence in the repo)
  • an unclosed parenthesis in a print label

Checked the neighbouring with_paths sections as well — their "containing only the Gaussian centre" labels are correct (1 value), so they survived the model change intact.

Verified: exit 0, printed counts now match the prose. Notebook regenerated.

🤖 Generated with Claude Code

The tutorial fits a two-component model (Gaussian + Exponential, 6
parameters), but the without_paths section still claimed that removing
gaussian.centre leaves '2 parameters; the normalization and sigma' —
text left over from when this tutorial fitted a Gaussian alone. The run
prints 5 values. without_paths was always correct; the prose was not.

Also in the same section:
- 'in-profile_1d with the PyAutoFIT API' -> 'in-line with the PyAutoFit
  API' (a bad find/replace of 'line' -> 'profile_1d'; only occurrence)
- closed an unclosed parenthesis in a print label

Verified: script exits 0, printed counts now match the prose.
Notebook regenerated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 6779e06 into main Jul 22, 2026
10 checks passed
@Jammy2211
Jammy2211 deleted the fix/tutorial-5-filtering-prose branch July 22, 2026 09:31
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