Skip to content

Add cluster mass-parameterization guide scripts#296

Merged
Jammy2211 merged 1 commit into
mainfrom
guide-cluster-mass-parameterizations
Jul 20, 2026
Merged

Add cluster mass-parameterization guide scripts#296
Jammy2211 merged 1 commit into
mainfrom
guide-cluster-mass-parameterizations

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Two companion guide scripts for cluster / group (multi-galaxy lens) mass parameterization, in scripts/cluster/. Both use the model-composition API, make free vs fixed explicit, and carry numerical checks (parameter-mapping identities verified to machine precision; deflection parity in the SIS limit).

cluster/mass_parameterizations.py — the Lenstool-style tour

Four self-contained models (each: halo + individual galaxies + scaling galaxies):

  • Model 1 — standard Lenstool: dPIE sigma, magnitude-anchored Faber-Jackson, BCG freed separately.
  • Model 2 — the same physics in b0 (angular, redshift-free) parameterization.
  • Model 3 — mass-anchoring: the scaling tier normalized to the BCG's own mass (0 free params).
  • Model 4 — the two-parameter relation, freeing r_cut_ref as well.

cluster/mass_parameterizations_pyautolens.py — mapping Lenstool → PyAutoLens

For Lenstool users, how/why PyAutoLens re-expresses the model in its native MGL parameterization:

  • Section 1 — Lenstool Model 1 (dPIE throughout).
  • Section 2 — the standard PyAutoLens mapping: halo dPIE→NFW, galaxies dPIE→Isothermal, sigmaeinstein_radius, and the four-tier coupling spectrum — main (free) / extra (free, luminosity-bounded) / scaling (BGC-tied, 0 free).
  • Section 3 — keeping the dPIE truncation on the scaling galaxies while main + extra galaxies stay Isothermal, via the cross-parameterization b0 ↔ einstein_radius linking (b0_i = einstein_radius_BGC · (L/L_BGC)^0.5).

Notebooks regenerated via PyAutoHands; catalogue (llms-full.txt, workspace_index.json) updated. Both scripts run end-to-end and all in-script asserts pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01K5MpYSYekRWVtoUmExAgKB

Two companion guides for cluster / group (multi-galaxy lens) mass
parameterization, using the model-composition API with free/fixed made
explicit and numerical checks throughout:

- cluster/mass_parameterizations.py — a tour of the standard Lenstool-style
  parameterizations (dPIE sigma vs b0; Faber-Jackson scaling relations;
  mass-anchoring to the BCG; the two-parameter relation freeing r_cut_ref),
  each model self-contained (halo + individual galaxies + scaling galaxies).

- cluster/mass_parameterizations_pyautolens.py — for Lenstool users: maps
  Lenstool Model 1 onto PyAutoLens's native MGL parameterization. Section 1
  is the Lenstool model; Section 2 the standard PyAutoLens mapping (halo
  dPIE->NFW, galaxies dPIE->Isothermal, sigma->einstein_radius, and the
  main/extra/scaling coupling spectrum: free / luminosity-bounded / BGC-tied);
  Section 3 keeps the dPIE truncation on the scaling galaxies while main and
  extra galaxies stay Isothermal, with the cross-parameterization b0<->
  einstein_radius linking.

Notebooks regenerated; catalogue (llms-full.txt, workspace_index.json) updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K5MpYSYekRWVtoUmExAgKB
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 20, 2026
@Jammy2211
Jammy2211 merged commit 4ae0580 into main Jul 20, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the guide-cluster-mass-parameterizations branch July 20, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant