Skip to content

refactor: merge adjacent docstring blocks so tutorial sections render as one cell - #129

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/workspace-hygiene-sweep-1104
Nov 4, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/workspace-hygiene-sweep-1104

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Merges 100 adjacent docstring blocks. In 11 pairs one block was raw (r""") and the other plain; these are merged as raw only where the plain block contains no backslash, so no string value changes. Notebooks are regenerated.

Part of the pre-release workspace hygiene sweep: PyAutoLabs/autolens_workspace#620.

Scripts Changed

  • scripts/chapter_1_introduction/tutorial_0_visualization.py
  • scripts/chapter_1_introduction/tutorial_2_ray_tracing.py
  • scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py
  • scripts/chapter_1_introduction/tutorial_4_point_sources.py
  • scripts/chapter_1_introduction/tutorial_5_data.py
  • scripts/chapter_1_introduction/tutorial_6_fitting.py
  • scripts/chapter_1_introduction/tutorial_7_summary.py
  • scripts/chapter_3_pixelizations/tutorial_2_bayesian_regularization.py
  • scripts/chapter_3_pixelizations/tutorial_3_borders.py
  • scripts/chapter_3_pixelizations/tutorial_4_lens_modeling.py
  • scripts/chapter_3_pixelizations/tutorial_5_fit_problems.py
  • scripts/chapter_3_pixelizations/tutorial_6_adaptive_reconstruction.py
  • scripts/chapter_4_scaling_up_lensing/tutorial_4_group_scale.py

Validation

  • Hygiene docstrings scan: 0.
  • Two top-level docstring blocks with nothing between them are now one block, so the generated notebook shows one markdown cell for a section, not two. An AST check on every touched file confirmed the code is identical and the concatenated prose is unchanged, ignoring whitespace.

🤖 Generated with Claude Code

… as one cell

Part of the pre-release workspace hygiene sweep (PyAutoLabs/autolens_workspace#620).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit a557b86 into main Nov 4, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/workspace-hygiene-sweep-1104 branch November 4, 2026 17:06
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