Skip to content

Commit 2297879

Browse files
Jammy2211claude
authored andcommitted
refactor: separate PYAUTOFIT_TEST_MODE into distinct PYAUTO_* env vars
Split the catch-all PYAUTOFIT_TEST_MODE into purpose-specific variables: - PYAUTO_TEST_MODE (sampler speedup, levels 0-3) - PYAUTO_SKIP_FIT_OUTPUT (pre/post-fit I/O, VRAM, result text) - PYAUTO_SKIP_VISUALIZATION (fit visualization and plotting) - PYAUTO_SKIP_CHECKS (mesh validation, position resampling, weight thresholds) Also renames: - PYAUTOARRAY_OUTPUT_MODE -> PYAUTO_OUTPUT_MODE - PYAUTO_WORKSPACE_SMALL_DATASETS -> PYAUTO_SMALL_DATASETS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3a74452 commit 2297879

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ black autogalaxy/
4141

4242
### Plot Output Mode
4343

44-
Set `PYAUTOARRAY_OUTPUT_MODE=1` to capture every figure produced by a script into numbered PNG files in `./output_mode/<script_name>/`. This is useful for visually inspecting all plots from an integration test without needing a display.
44+
Set `PYAUTO_OUTPUT_MODE=1` to capture every figure produced by a script into numbered PNG files in `./output_mode/<script_name>/`. This is useful for visually inspecting all plots from an integration test without needing a display.
4545

4646
```bash
47-
PYAUTOARRAY_OUTPUT_MODE=1 python scripts/my_script.py
47+
PYAUTO_OUTPUT_MODE=1 python scripts/my_script.py
4848
# -> ./output_mode/my_script/0_fit.png, 1_tracer.png, ...
4949
```
5050

autogalaxy/analysis/model_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def mge_model_from(
9090

9191
import os
9292

93-
if os.environ.get("PYAUTO_WORKSPACE_SMALL_DATASETS") == "1":
93+
if os.environ.get("PYAUTO_SMALL_DATASETS") == "1":
9494
total_gaussians = 2
9595
gaussian_per_basis = 1
9696

autogalaxy/quantity/model/visualizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
import autofit as af
4-
from autoconf.test_mode import is_test_mode
4+
from autoconf.test_mode import skip_visualization
55

66
from autogalaxy.quantity.model.plotter import PlotterQuantity
77

@@ -66,7 +66,7 @@ def visualize(
6666
via a non-linear search).
6767
"""
6868

69-
if is_test_mode():
69+
if skip_visualization():
7070
return
7171

7272
fit = analysis.fit_quantity_for_instance(instance=instance)

0 commit comments

Comments
 (0)