Skip to content

test: re-pin source-plane literals for jacobian default - #346

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/positions-source-jacobian-default
Oct 21, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/positions-source-jacobian-default

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

This re-pins the autolens_workspace_test values that change with PyAutoLens#792 (the FitPositionsSource default is now "jacobian", and the "magnification" normalisation is now model-independent and 2-D).

jax_likelihood/source_plane.py moves from −331481.26 to −104.6686, and the change is fully accounted for:

  • Normalisation: with an explicit magnification subclass, logL is −331479.150. Putting the old 1-D, μ-dependent normalisation back gives −331481.260, the old pin. So the normalisation change alone is +2.11.
  • χ²: the rest is χ² dropping from 662,993 to 244.4, because one image has μ ≈ 82.
  • Unaffected: the solved-centre value (−94.7075) does not change.

Refs PyAutoLens#791.

Scripts Changed

  • scripts/point_source/jax_likelihood/source_plane.py: re-pinned vmap −104.66864953 and eager −104.6686495443079 literals.
  • scripts/cluster/likelihood_sanity.py: prints χ² per dataset and corrects the explanation of point_0's large truth χ². The old "solver precision floor × magnification" story was wrong: its observed images trace up to ~7″ from the truth model. The soft assertions are unchanged.
  • scripts/AGENTS.md: the description row is updated for the jacobian default.

Upstream PR

PyAutoLabs/PyAutoLens#792 (merged)

Test Plan

  • jax_likelihood/source_plane.py PASS
  • cluster/likelihood_sanity.py PASS
  • jax_grad/gradient.py PASS

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LeyZFQHWT1xR4KpejmL4FV

Follow-up to PyAutoLens#792: source_plane.py -331481.26 -> -104.6686;
likelihood_sanity explains point_0 chi2 correctly; AGENTS.md row updated.

Refs PyAutoLabs/PyAutoLens#791

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LeyZFQHWT1xR4KpejmL4FV
@Jammy2211
Jammy2211 merged commit c13c5be into main Oct 21, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/positions-source-jacobian-default branch October 21, 2026 20:24
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