From 15ae8cac28264f39a355907197cff5c9015a6133 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 18 Sep 2026 21:57:50 +0100 Subject: [PATCH] docs: stop telling readers to source a task bundle that no longer exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `files/ghost_peak_experiment.py` and `files/pca_rotation_experiment.py` told readers to `source ~/Code/PyAutoLabs-wt/rectangular-adapt-cdf/activate.sh` — an absolute path to a task bundle that was removed long ago, and which contradicted the line beneath it, where `python PyAutoArray/files/...` already assumed cwd was the workspace root. Both now say to run from the workspace root (or a task-bundle root) with its own ./activate.sh sourced. Prose only; no code depends on these lines. 1584 passed. Note: both scripts import autoarray.inversion.mesh.interpolator.rectangular_spline, which no longer exists — they cannot run at all. That is pre-existing, out of scope for a docstring fix, and filed as its own decision (keep and repair, or retire) in PyAutoMind draft/maintenance/autoarray/files_experiment_scripts_import_a_removed_module.md. Part of PyAutoBrain#393 (phase 2). No directory layout changes. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_0161NLKVzbBMzhaBfjpGogor --- files/ghost_peak_experiment.py | 5 +++-- files/pca_rotation_experiment.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/files/ghost_peak_experiment.py b/files/ghost_peak_experiment.py index c7533ebb5..4076f87e9 100644 --- a/files/ghost_peak_experiment.py +++ b/files/ghost_peak_experiment.py @@ -34,9 +34,10 @@ and the warped mesh edges, for K = 1, 2, 3 peaks side by side. - console log: per-zone pixel-density ratios and ghost-to-real ratio. -Run inside the worktree with ``activate.sh`` sourced:: +Run from the workspace root (or a task-bundle root) with its ``activate.sh`` +sourced:: - source ~/Code/PyAutoLabs-wt/rectangular-adapt-cdf/activate.sh + source ./activate.sh python PyAutoArray/files/ghost_peak_experiment.py """ import os diff --git a/files/pca_rotation_experiment.py b/files/pca_rotation_experiment.py index c07c8e6f8..2bec5a6d6 100644 --- a/files/pca_rotation_experiment.py +++ b/files/pca_rotation_experiment.py @@ -23,9 +23,10 @@ 5. Visualise rotated-frame warped mesh AND source-frame warped mesh (rotated back). -Run with:: +Run from the workspace root (or a task-bundle root) with its ``activate.sh`` +sourced:: - source ~/Code/PyAutoLabs-wt/rectangular-adapt-cdf/activate.sh + source ./activate.sh python PyAutoArray/files/pca_rotation_experiment.py """ import os