Skip to content

Commit cef46b1

Browse files
Jammy2211claude
authored andcommitted
fix: import is_test_mode from autoconf instead of autofit
PyAutoArray does not depend on autofit. The previous import caused CI failures (ModuleNotFoundError). Also add dependency graph to CLAUDE.md to prevent this class of error. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 408ceee commit cef46b1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
44

5+
## Dependency Graph
6+
7+
PyAutoArray depends on **autoconf** (shared configuration and utilities).
8+
PyAutoArray does **NOT** depend on PyAutoFit, PyAutoGalaxy, or PyAutoLens.
9+
Never import from `autofit`, `autogalaxy`, or `autolens` in this repo.
10+
Shared utilities (e.g. `test_mode`, `jax_wrapper`) belong in autoconf.
11+
512
## Commands
613

714
### Install

autoarray/inversion/mesh/image_mesh/hilbert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from autoarray.structures.grids.irregular_2d import Grid2DIrregular
1313

1414
from autoarray import exc
15-
from autofit.non_linear.test_mode import is_test_mode
15+
from autoconf.test_mode import is_test_mode
1616

1717

1818
def gilbert2d(width, height):

0 commit comments

Comments
 (0)