diff --git a/markdown/overview/overview_1_the_basics.md b/markdown/overview/overview_1_the_basics.md index 19897844..4e668291 100644 --- a/markdown/overview/overview_1_the_basics.md +++ b/markdown/overview/overview_1_the_basics.md @@ -2773,11 +2773,3 @@ plt.close() ![png](overview_1_the_basics_files/overview_1_the_basics_77_0.png) - - -Finish. - - -```python - -``` diff --git a/notebooks/cookbooks/analysis.ipynb b/notebooks/cookbooks/analysis.ipynb index 5f627356..7e06e8c4 100644 --- a/notebooks/cookbooks/analysis.ipynb +++ b/notebooks/cookbooks/analysis.ipynb @@ -1007,13 +1007,6 @@ ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/cookbooks/samples.ipynb b/notebooks/cookbooks/samples.ipynb index 48e7eb6c..71dbe971 100644 --- a/notebooks/cookbooks/samples.ipynb +++ b/notebooks/cookbooks/samples.ipynb @@ -939,17 +939,10 @@ "print(\n", " \"All parameters of the very first sample (containing only the Gaussian normalization and sigma).\"\n", ")\n", - "print(samples.parameter_lists[0])" + "print(samples.parameter_lists[0])\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/features/interpolate.ipynb b/notebooks/features/interpolate.ipynb index e77ebd05..46a322ba 100644 --- a/notebooks/features/interpolate.ipynb +++ b/notebooks/features/interpolate.ipynb @@ -448,17 +448,10 @@ " f\"Gaussian centre of fit at t = 2: {instance_at_time(ml_instances_list, 2).gaussian.centre}\"\n", ")\n", "\n", - "print(f\"Gaussian centre interpolated at t = 1.5 {instance.gaussian.centre}\")" + "print(f\"Gaussian centre interpolated at t = 1.5 {instance.gaussian.centre}\")\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/features/search_grid_search.ipynb b/notebooks/features/search_grid_search.ipynb index f1a52c0d..54cff046 100644 --- a/notebooks/features/search_grid_search.ipynb +++ b/notebooks/features/search_grid_search.ipynb @@ -557,17 +557,10 @@ "# model=model,\n", "# analysis=analysis,\n", "# grid_priors=[model.gaussian_feature.centre, model.gaussian_main.centre],\n", - "# )" + "# )\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/features/sensitivity_mapping.ipynb b/notebooks/features/sensitivity_mapping.ipynb index 61d361b7..59c7ae05 100644 --- a/notebooks/features/sensitivity_mapping.ipynb +++ b/notebooks/features/sensitivity_mapping.ipynb @@ -792,17 +792,10 @@ "metadata": {}, "source": [ "print(sensitivity_result.samples)\n", - "print(sensitivity_result.log_evidences_base)" + "print(sensitivity_result.log_evidences_base)\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/overview/overview_1_the_basics.ipynb b/notebooks/overview/overview_1_the_basics.ipynb index a6e7e784..89e6a8bf 100644 --- a/notebooks/overview/overview_1_the_basics.ipynb +++ b/notebooks/overview/overview_1_the_basics.ipynb @@ -1334,17 +1334,10 @@ "plt.xlabel(\"x values of profile\")\n", "plt.ylabel(\"Profile normalization\")\n", "plt.show()\n", - "plt.close()" + "plt.close()\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/plot/dynesty_plotter.ipynb b/notebooks/plot/dynesty_plotter.ipynb index 065b2451..476179ee 100644 --- a/notebooks/plot/dynesty_plotter.ipynb +++ b/notebooks/plot/dynesty_plotter.ipynb @@ -510,17 +510,10 @@ " plt.close()\n", "\n", "except ValueError:\n", - " pass" + " pass\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/plot/emcee_plotter.ipynb b/notebooks/plot/emcee_plotter.ipynb index 48ad5fd2..fc97cd1b 100644 --- a/notebooks/plot/emcee_plotter.ipynb +++ b/notebooks/plot/emcee_plotter.ipynb @@ -324,17 +324,10 @@ "\n", "axes[-1].set_xlabel(\"step number\")\n", "\n", - "plt.show()" + "plt.show()\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/plot/zeus_plotter.ipynb b/notebooks/plot/zeus_plotter.ipynb index d46df491..30ca6371 100644 --- a/notebooks/plot/zeus_plotter.ipynb +++ b/notebooks/plot/zeus_plotter.ipynb @@ -297,17 +297,10 @@ "\n", "axes[-1].set_xlabel(\"step number\")\n", "\n", - "plt.show()" + "plt.show()\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/searches/start_point.ipynb b/notebooks/searches/start_point.ipynb index 76a57062..6df4bcd0 100644 --- a/notebooks/searches/start_point.ipynb +++ b/notebooks/searches/start_point.ipynb @@ -330,17 +330,10 @@ "\n", "print(samples.parameter_lists[0])\n", "print(samples.parameter_lists[1])\n", - "print(samples.parameter_lists[2])" + "print(samples.parameter_lists[2])\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/notebooks/simulators/simulators.ipynb b/notebooks/simulators/simulators.ipynb index 536ac567..a23c9728 100644 --- a/notebooks/simulators/simulators.ipynb +++ b/notebooks/simulators/simulators.ipynb @@ -448,17 +448,10 @@ "\n", "dataset_path = path.join(\"dataset\", \"example_1d\", \"gaussian_x1_variable\", \"sigma_2\")\n", "gaussian = af.ex.Gaussian(centre=50.0, normalization=50.0, sigma=30.0)\n", - "util.simulate_dataset_1d_via_gaussian_from(gaussian=gaussian, dataset_path=dataset_path)" + "util.simulate_dataset_1d_via_gaussian_from(gaussian=gaussian, dataset_path=dataset_path)\n" ], "outputs": [], "execution_count": null - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Finish." - ] } ], "metadata": { diff --git a/scripts/cookbooks/analysis.py b/scripts/cookbooks/analysis.py index 9742cb18..9d15c4ba 100644 --- a/scripts/cookbooks/analysis.py +++ b/scripts/cookbooks/analysis.py @@ -820,8 +820,3 @@ def save_results(self, paths: af.DirectoryPaths, result: af.Result): with open(file_path, "w+") as f: json.dump(model_data, f, indent=4) - - -""" -Finish. -""" diff --git a/scripts/cookbooks/samples.py b/scripts/cookbooks/samples.py index a8cc610c..55b0417f 100644 --- a/scripts/cookbooks/samples.py +++ b/scripts/cookbooks/samples.py @@ -584,7 +584,3 @@ "All parameters of the very first sample (containing only the Gaussian normalization and sigma)." ) print(samples.parameter_lists[0]) - -""" -Finish. -""" diff --git a/scripts/features/interpolate.py b/scripts/features/interpolate.py index 2ba54753..99335cf0 100644 --- a/scripts/features/interpolate.py +++ b/scripts/features/interpolate.py @@ -294,7 +294,3 @@ def instance_at_time(instances, time): ) print(f"Gaussian centre interpolated at t = 1.5 {instance.gaussian.centre}") - -""" -Finish. -""" diff --git a/scripts/features/search_grid_search.py b/scripts/features/search_grid_search.py index d4fc7714..1a8a7b6a 100644 --- a/scripts/features/search_grid_search.py +++ b/scripts/features/search_grid_search.py @@ -334,7 +334,3 @@ # analysis=analysis, # grid_priors=[model.gaussian_feature.centre, model.gaussian_main.centre], # ) - -""" -Finish. -""" diff --git a/scripts/features/sensitivity_mapping.py b/scripts/features/sensitivity_mapping.py index e4bb694c..53440037 100644 --- a/scripts/features/sensitivity_mapping.py +++ b/scripts/features/sensitivity_mapping.py @@ -573,7 +573,3 @@ def __call__(self, dataset, model, paths, instance): """ print(sensitivity_result.samples) print(sensitivity_result.log_evidences_base) - -""" -Finish. -""" diff --git a/scripts/overview/overview_1_the_basics.py b/scripts/overview/overview_1_the_basics.py index 102c0495..dbf4d878 100644 --- a/scripts/overview/overview_1_the_basics.py +++ b/scripts/overview/overview_1_the_basics.py @@ -873,7 +873,3 @@ def log_likelihood_function(self, instance) -> float: plt.ylabel("Profile normalization") plt.show() plt.close() - -""" -Finish. -""" diff --git a/scripts/plot/dynesty_plotter.py b/scripts/plot/dynesty_plotter.py index 3a0a3454..9805eb13 100644 --- a/scripts/plot/dynesty_plotter.py +++ b/scripts/plot/dynesty_plotter.py @@ -333,7 +333,3 @@ except ValueError: pass - -""" -Finish. -""" diff --git a/scripts/plot/emcee_plotter.py b/scripts/plot/emcee_plotter.py index f19ee2ea..00025590 100644 --- a/scripts/plot/emcee_plotter.py +++ b/scripts/plot/emcee_plotter.py @@ -189,7 +189,3 @@ axes[-1].set_xlabel("step number") plt.show() - -""" -Finish. -""" diff --git a/scripts/plot/zeus_plotter.py b/scripts/plot/zeus_plotter.py index 1ef28922..8902e389 100644 --- a/scripts/plot/zeus_plotter.py +++ b/scripts/plot/zeus_plotter.py @@ -174,7 +174,3 @@ axes[-1].set_xlabel("step number") plt.show() - -""" -Finish. -""" diff --git a/scripts/searches/start_point.py b/scripts/searches/start_point.py index 6f2b9132..3dba874c 100644 --- a/scripts/searches/start_point.py +++ b/scripts/searches/start_point.py @@ -186,7 +186,3 @@ print(samples.parameter_lists[0]) print(samples.parameter_lists[1]) print(samples.parameter_lists[2]) - -""" -Finish. -""" diff --git a/scripts/simulators/simulators.py b/scripts/simulators/simulators.py index 2923de8c..3c4baa1f 100644 --- a/scripts/simulators/simulators.py +++ b/scripts/simulators/simulators.py @@ -205,7 +205,3 @@ dataset_path = path.join("dataset", "example_1d", "gaussian_x1_variable", "sigma_2") gaussian = af.ex.Gaussian(centre=50.0, normalization=50.0, sigma=30.0) util.simulate_dataset_1d_via_gaussian_from(gaussian=gaussian, dataset_path=dataset_path) - -""" -Finish. -"""