Skip to content

docs: correct sigma_LT/sigma_0 attribution in dPIE docstrings - #525

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/pyautolens-doc-reorganization-w6a1l5
Jul 25, 2026
Merged

docs: correct sigma_LT/sigma_0 attribution in dPIE docstrings#525
Jammy2211 merged 2 commits into
mainfrom
claude/pyautolens-doc-reorganization-w6a1l5

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Documentation-only correction to the dPIE mass-profile docstrings, from the contributed derivation note (H. Ding 2026, "On the definitions of b0 and velocity dispersion in Lenstool / dPIE"):

  • The relation sigma_0 = sqrt(3/2) * sigma_LT was attributed to Elíasdóttir et al. (2007) as a physical definition. It is in fact Lenstool's parameter convention — an E07-style b0 coefficient paired with the Kassiola & Kovner (1993) / Limousin et al. (2005) deflection amplitude — and the docstrings (dPIEMass, from_lenstool, _b0_from_lenstool_sigma) now say so consistently.
  • Added the equivalent central-dispersion form b0 = 4 * 648000 * (sigma_0/c)^2 * (D_LS/D_S) and the derivation note to the References block.

No numerical behaviour changes; the sigma_LT parameterization is retained deliberately for Lenstool results-table parity. Reviewed by an Opus pass (no blockers; its one finding — a stale attribution left in the helper docstring — is fixed here).

🤖 Generated with Claude Code

https://claude.ai/code/session_012Eacj9naBWSKrevsqnVJWR


Generated by Claude Code

claude added 2 commits July 25, 2026 19:03
The sqrt(3/2) relation between Lenstool's fiducial dispersion (sigma_LT) and
the central dispersion (sigma_0) was attributed to Elíasdóttir et al. (2007)
as if it were that paper's physical definition. Per the contributed
derivation note (H. Ding 2026, "On the definitions of b0 and velocity
dispersion in Lenstool / dPIE"), it is Lenstool's parameter convention:
Lenstool computes b0 = 6*pia_c2*sigma^2 (an E07-style coefficient) but
evaluates deflections with the Kassiola & Kovner (1993) / Limousin et al.
(2005) amplitude, so the input sigma must be read through the L05
parameterization. Docstrings now state this, and give the equivalent
central-dispersion form b0 = 4*648000*(sigma_0/c)^2*(D_LS/D_S).

No numerical behaviour changes — documentation only; the sigma_LT
parameterization is retained deliberately for Lenstool results-table parity.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Eacj9naBWSKrevsqnVJWR
…e to References

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Eacj9naBWSKrevsqnVJWR
@Jammy2211
Jammy2211 merged commit 34c30a8 into main Jul 25, 2026
5 checks passed
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.

2 participants