Commit e4e70cc
feat: SimulatorInterferometer.via_tracer_from auto-defaults xp from parent
Changes via_tracer_from / via_galaxies_from on autolens's SimulatorInterferometer
override to default xp=None and fall back to self._xp inherited from
aa.SimulatorInterferometer. When the simulator is constructed with use_jax=True,
both methods route xp=jnp through tracer.image_2d_from / galaxies.image_2d_from
and via_image_from without the user passing xp explicitly.
Depends on Jammy2211/PyAutoArray PR adding use_jax constructor flag + _xp
property to the parent aa.SimulatorInterferometer.
Part of Phase 2 PR 3 of z_features/jax_user_intro.md.
Issue: PyAutoArray#334
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0ef58b7 commit e4e70cc
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | | - | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments