Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ python scripts/imaging/modeling/start_here.py
PYAUTOFIT_TEST_MODE=1 python scripts/imaging/modeling/start_here.py
```

**Fast smoke tests**: For maximum speed, combine test mode with small datasets and disabled critical curves:
**Fast smoke tests**: For maximum speed, combine test mode with small datasets and fast plots:

```bash
PYAUTOFIT_TEST_MODE=2 PYAUTO_WORKSPACE_SMALL_DATASETS=1 PYAUTO_DISABLE_CRITICAL_CAUSTICS=1 PYAUTO_FAST_PLOTS=1 python scripts/imaging/modeling.py
PYAUTOFIT_TEST_MODE=2 PYAUTO_WORKSPACE_SMALL_DATASETS=1 PYAUTO_FAST_PLOTS=1 python scripts/imaging/modeling.py
```

- `PYAUTO_WORKSPACE_SMALL_DATASETS=1` — caps all grids/masks to 15x15 pixels at 0.6"/px, making simulators and all downstream computations dramatically faster. Delete `dataset/` when toggling this variable.
- `PYAUTO_DISABLE_CRITICAL_CAUSTICS=1` — skips critical curve and caustic overlay computation in plots.
- `PYAUTO_FAST_PLOTS=1` — skips `plt.tight_layout()` in subplot functions, avoiding expensive matplotlib font/text metrics computation.
- `PYAUTO_FAST_PLOTS=1` — skips `plt.tight_layout()` and critical curve/caustic overlay computation in subplot functions.

**Codex / sandboxed runs**: when running from Codex or any restricted environment, set writable cache directories so `numba` and `matplotlib` do not fail on unwritable home or source-tree paths:

Expand Down
3 changes: 1 addition & 2 deletions config/build/env_vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
defaults:
PYAUTOFIT_TEST_MODE: "2" # 0=normal, 1=reduced iterations, 2=skip sampler (fastest)
PYAUTO_WORKSPACE_SMALL_DATASETS: "1" # Cap grids/masks to 15x15, reduce MGE gaussians
PYAUTO_DISABLE_CRITICAL_CAUSTICS: "1" # Skip critical curve/caustic overlays in plots
PYAUTO_DISABLE_JAX: "1" # Force use_jax=False, avoid JIT compilation overhead
PYAUTO_FAST_PLOTS: "1" # Skip tight_layout() in subplots
PYAUTO_FAST_PLOTS: "1" # Skip tight_layout() + critical curve/caustic overlays
JAX_ENABLE_X64: "True" # Enable 64-bit precision in JAX
NUMBA_CACHE_DIR: "/tmp/numba_cache" # Writable cache dir for numba
MPLCONFIGDIR: "/tmp/matplotlib" # Writable config dir for matplotlib
Expand Down