Skip to content

refactor(jax_likelihood_functions): drop xp=jnp from PointSolver.for_grid - #57

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

Updates the 3 point-source JAX-likelihood verification scripts to use the new PointSolver.for_grid signature from PyAutoLabs/PyAutoLens#469. The cross-xp assertions (numpy vs JAX via AnalysisPoint(use_jax=True)) are retained and continue to match (log-likelihood 1.31350833 for image_plane and point; -199.155585 for source_plane).

Scripts Changed

  • scripts/jax_likelihood_functions/point_source/image_plane.py — drop xp=jnp from PointSolver.for_grid
  • scripts/jax_likelihood_functions/point_source/point.py — drop xp=jnp from PointSolver.for_grid
  • scripts/jax_likelihood_functions/point_source/source_plane.py — drop xp=jnp from PointSolver.for_grid

Upstream PR

PyAutoLabs/PyAutoLens#469

Test Plan

  • All 3 scripts run end-to-end (already verified in upstream session)

🤖 Generated with Claude Code

…grid

Aligns the point-source JAX likelihood verification scripts with the
PointSolver refactor in PyAutoLabs/PyAutoLens#469. Cross-xp verification
(numpy vs jit(fit_from)) is retained and still proves the ergonomic API
yields the same log-likelihood.

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 60ffa8f into main Apr 21, 2026
0 of 4 checks passed
@Jammy2211
Jammy2211 deleted the feature/point-solver-auto-jax branch April 21, 2026 13:26
@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