Skip to content

Commit 2fc5f11

Browse files
Jammy2211claude
authored andcommitted
docs: regenerate the two notebooks with mangled code cells
`chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb` and `simulator/source_complex.ipynb` each had a code cell containing a literal `# %%` and `'''` — a SyntaxError for anyone who ran it. Their scripts open a docstring on the line immediately after code, which the generator failed to split into its own markdown cell (fixed in PyAutoLabs/PyAutoHands#214). No script in this repo carries the `Finished.` / `Finish.` crutch, so this is a regeneration only. Refs PyAutoLabs/PyAutoHands#211 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013XzXdQMU3KV2tyZaMNPvsM
1 parent 3e0d7bb commit 2fc5f11

2 files changed

Lines changed: 19 additions & 13 deletions

File tree

notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -736,21 +736,24 @@
736736
" unique_tag=dataset_name,\n",
737737
" n_live=300,\n",
738738
" iterations_per_quick_update=2500, # Outpuers Notebook visualization of max likelihood model every N iterations\n",
739-
")\n",
740-
"# %%\n",
741-
"'''\n",
739+
")"
740+
],
741+
"outputs": [],
742+
"execution_count": null
743+
},
744+
{
745+
"cell_type": "markdown",
746+
"metadata": {},
747+
"source": [
742748
"__Run Time__\n",
743749
"\n",
744750
"The run time of the `log_likelihood_function` is around the usual value. \n",
745751
"\n",
746752
"Due to the more thorough Nautilus settings, the the model-fit should take more than 10000 iterations per free parameter \n",
747753
"to converge and thus take longer than we are used too.\n",
748754
"\n",
749-
"Run the non-linear search.\n",
750-
"'''"
751-
],
752-
"outputs": [],
753-
"execution_count": null
755+
"Run the non-linear search."
756+
]
754757
},
755758
{
756759
"cell_type": "code",

notebooks/simulator/source_complex.ipynb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,18 @@
137137
" centre_list=[(0.0, 0.0)],\n",
138138
")\n",
139139
"\n",
140-
"grid = grid.apply_over_sampling(over_sample_size=over_sample_size)\n",
141-
"# %%\n",
142-
"'''\n",
143-
"Simulate a simple Gaussian PSF for the image.\n",
144-
"'''"
140+
"grid = grid.apply_over_sampling(over_sample_size=over_sample_size)"
145141
],
146142
"outputs": [],
147143
"execution_count": null
148144
},
145+
{
146+
"cell_type": "markdown",
147+
"metadata": {},
148+
"source": [
149+
"Simulate a simple Gaussian PSF for the image."
150+
]
151+
},
149152
{
150153
"cell_type": "code",
151154
"metadata": {},

0 commit comments

Comments
 (0)