Repository navigation
docs: explain jacobian source-plane default; Lenstool example is image-plane - #593
Merged
Merged
Conversation
…e-plane Follow-up to PyAutoLens#792. New 'Source-plane weighting' section in the pairing guide; likelihood_function walkthrough rewritten to the jacobian form; lenstool example uses FitPositionsImagePairRepeat (Mahler fit is forme -1). Notebooks + catalogue regenerated. Refs PyAutoLabs/PyAutoLens#791 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LeyZFQHWT1xR4KpejmL4FV
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These are the workspace updates for PyAutoLens#792, where
FitPositionsSourcenow defaults to the"jacobian"source-plane weighting.The scripts now explain the default:
"magnification": only to reproduce analyses that used the scalar form, given its radial bias of about μ² near critical curves.The full explanation is a new "Source-plane weighting" section in
guides/point_source_pairing.py; the other scripts are brief and point to it.The Lenstool example is also corrected. The Mahler SMACS0723 fit it reproduces uses
forme -1, an image-plane χ², so it now usesal.FitPositionsImagePairRepeat. Lenstool's tensor source-plane mode (forme 8) equals our"jacobian"; Lenstool's code never uses the scalar μ² form the old prose attributed to it.Refs PyAutoLens#791.
Scripts Changed
scripts/guides/point_source_pairing.py: new "Source-plane weighting" section (jacobian default, magnification opt-in, Lenstool modes); the option table no longer calls the scalar form "Lenstool's default".scripts/point_source/fit.py: free-centre demo prose describes the jacobian default and points to the guide.scripts/point_source/modeling.py: the tensor-vs-scalar prose is updated for the new default.scripts/cluster/likelihood_function.py: the step-by-step walkthrough is rewritten to the jacobian form (δᵀA⁻ᵀA⁻¹δ/σ², normalisation Σ log((2π)²σ⁴)) so it again matches the library (Match: True); adds an opt-in magnification block.scripts/cluster/lenstool/modeling.pyandREADME.md: switched toal.FitPositionsImagePairRepeat(image-plane, matchingforme -1), with corrected Lenstool prose.notebooks/…,llms-full.txtandworkspace_index.json: regenerated from the scripts.Upstream PR
PyAutoLabs/PyAutoLens#792 (merged)
Test Plan
fit.py,modeling.py, the pairing guide,likelihood_function.py, lenstooldata.pyandmodeling.py.likelihood_function.pyprintsMatch: Truefor the source-plane walkthrough.Not changed here: the image-plane manual check in
cluster/likelihood_function.pyalready disagreed with the library before this PR (manual 26.2 vs library −1.5e5). It is to be filed separately.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LeyZFQHWT1xR4KpejmL4FV