Commit 25a988d
test: remove jax-using unit tests; assertions moved to autolens_workspace_test (#295)
Unit tests in test_autoarray/ that imported jax (directly via importorskip
or indirectly via library helpers like ImagingSparseOperator and the KNN
interpolator) caused two problems: they broke the no-jax CI matrix on
Python 3.9 / 3.10, and they paid the jax import cost on every local run
even when self-skipping. Per the project rule "library unit tests stay
numpy-only; cross-xp checks live in workspace_test", move all 9 jax
assertions into autolens_workspace_test/scripts/jax_assertions/.
Library code unchanged. Conftest's collect_ignore_glob for test_jax_*.py
removed since no such files remain (test_jax_changes.py renamed to
test_changes.py since it never used jax in the first place).
Co-authored-by: Jammy2211 <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>1 parent 50ee61b commit 25a988d
8 files changed
Lines changed: 475 additions & 943 deletions
File tree
- test_autoarray
- inversion/inversion
- imaging
- interferometer
- structures/grids
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
| |||
0 commit comments