From 7efe0cacfd9164d32dda8cec55ed150619c7437f Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 28 May 2026 22:13:58 +0100 Subject: [PATCH] docs(chapter_1): add missing imports to tutorial_0_visualization Tutorial used `Path("dataset", "imaging", "simple__sersic")` and `ag.Imaging.from_fits(...)` but had no imports of `Path`, `ag`, or `aplt`. Crashed at line 38 with `NameError: name 'Path' is not defined` (NEEDS_FIX-parked 48 days). Add the three missing imports in the literate-style position just before the first use, matching the convention of other tutorials in this chapter. Verified locally: the script now runs to completion under `PYAUTO_TEST_MODE=2 python scripts/chapter_1_introduction/tutorial_0_visualization.py`. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/chapter_1_introduction/tutorial_0_visualization.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/chapter_1_introduction/tutorial_0_visualization.py b/scripts/chapter_1_introduction/tutorial_0_visualization.py index 8417270..de5c6c6 100644 --- a/scripts/chapter_1_introduction/tutorial_0_visualization.py +++ b/scripts/chapter_1_introduction/tutorial_0_visualization.py @@ -35,6 +35,11 @@ There are many example simulated images of galaxies in this directory that will be used throughout the **HowToGalaxy** lectures. """ +from pathlib import Path + +import autogalaxy as ag +import autogalaxy.plot as aplt + dataset_path = Path("dataset", "imaging", "simple__sersic") """