Commit 4b2decd
docs: registration is the caller's job — correct stale auto-call claims
The autolens/jax/registration.py module docstring claimed register_tracer_classes
"is called automatically by PointSolver(use_jax=True).solve(tracer, ...) on the
first invocation and by Simulator(use_jax=True).via_tracer_from(tracer, ...) ...
once Phase 2 ships the Simulator changes".
Neither is true. grep finds no caller anywhere in autolens. And it cannot be
done automatically: PointSolver.solve_triangles already carries the reason at its
own call site (point_solver.py:102-109) — JAX flattens a jitted function's
arguments at trace time, before entering the callee, so registration must run
before the first jitted call.
Corrected to state that calling it is the user's responsibility, with the
trace-time reason, and to cross-reference the new autogalaxy counterpart
autogalaxy.jax.register_galaxies_classes (PyAutoGalaxy#537).
Docstring only — no behaviour change, no API surface.
Refs PyAutoLabs/autolens_workspace#379
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CWqjHGXUut25TEB8octU8H1 parent 82afda6 commit 4b2decd
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
0 commit comments