Commit 568c3eb
feat(analysis): fall back to numpy when use_jax=True but jax not installed
Workspace example scripts pass use_jax=True by default, which crashes
on Python 3.9/3.10 (where JAX isn't installed under the [jax] extra
gate). Detect missing jax via importlib.util.find_spec, emit a loud
banner-style UserWarning, and silently downgrade to use_jax=False.
The fit still runs (just slower).
Resolves Category B from PyAutoBuild#74 (matrix run smoke fails on
3.9/3.10 across autogalaxy_workspace and autolens_workspace).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9512e44 commit 568c3eb
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
47 | 71 | | |
48 | 72 | | |
49 | 73 | | |
| |||
0 commit comments