Skip to content

refactor: drop xp=jnp from PointSolver.for_grid call sites - #81

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/point-solver-auto-jax
Apr 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/point-solver-auto-jax

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Migrates all PointSolver.for_grid(xp=jnp) call sites after the ergonomic refactor in PyAutoLabs/PyAutoLens#469. With the library change, a single solver works for both numpy and JAX paths; the "Hacky way to use JAX PointSolver, fix soon" dual-solver workaround is no longer needed.

Scripts Changed

  • scripts/cluster/modeling.py — drop xp=jnp from PointSolver.for_grid, remove unused jnp import
  • scripts/guides/modeling/advanced/graphical.py — drop xp=jnp from PointSolver.for_grid, remove unused jnp import
  • scripts/point_source/features/fluxes.py — drop xp=jnp from PointSolver.for_grid, remove unused jnp import
  • scripts/point_source/features/time_delays.py — drop xp=jnp from PointSolver.for_grid, remove unused jnp import
  • scripts/point_source/modeling.py — remove dual-solver "Hacky way to use JAX PointSolver" block; AnalysisPoint(use_jax=True) now reuses the single solver
  • scripts/point_source/start_here.py — remove dual-solver block as above

Upstream PR

PyAutoLabs/PyAutoLens#469

Test Plan

  • Smoke tests pass for affected point-source scripts

🤖 Generated with Claude Code

Following PyAutoLens #469, PointSolver.for_grid no longer accepts xp=.
Strip the kwarg from all 6 point-source usages; remove the now-dead
"Hacky way to use JAX PointSolver" dual-solver pattern from
point_source/modeling.py and point_source/start_here.py so that a single
solver is reused for the AnalysisPoint(..., use_jax=True) path.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Apr 21, 2026
@Jammy2211
Jammy2211 merged commit 68cf804 into main Apr 21, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/point-solver-auto-jax branch April 21, 2026 13:25
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant