Commit 50ee61b
fix: make jax imports lazy in Grid2DContour properties
contour_list and contour_array did unconditional `import jax.numpy as jnp`
inside their property bodies, which broke the numpy code path on Python
3.9 / 3.10 under the new optional [jax] extra. contour_list only used jax
for an isinstance check (replaced with duck-typing on .array); contour_array's
JAX-array construction is replaced with the numpy equivalent (the downstream
consumer materialises to numpy anyway).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0835e33 commit 50ee61b
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | 57 | | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
63 | 61 | | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments