Skip to content

docs(api): sync mass.rst with full al.mp namespace + lmp / lmp_linear - #520

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/docs-mass-rst-sync
May 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/docs-mass-rst-sync

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

docs/api/mass.rst was out of sync with the al.mp.* namespace it documents — multiple
exported classes were missing from the autosummary, and the al.lmp.* / al.lmp_linear.*
namespaces had no autosummary entries at all. This PR brings the file in line with the
current namespace.

Motivation: surfaced as a follow-up while writing the
scripts/guides/profiles/mass.py (autolens_workspace #178 / #179) and
scripts/guides/profiles/light_and_mass_profiles.py (autolens_workspace #180 / #181)
guides — both reference the published API reference URL, so the reference itself should
list every class the guides demonstrate.

Closes #519.

API Changes

None — docs-only change. No Python code is modified, no symbols added or removed. The new
autosummary entries point at classes that already exist in autogalaxy.profiles.mass.*,
autogalaxy.profiles.light_and_mass_profiles, and
autogalaxy.profiles.light_linear_and_mass_profiles, and are already re-exported by
autolens as al.mp.*, al.lmp.*, and al.lmp_linear.*.
See full details below.

Test Plan

  • PyAutoLens unit test suite passes (no code touched, but pytest is a baseline sanity check)
  • Sphinx build of the autolens docs produces no warnings for mass.rst
  • Spot-check the rendered autosummary against dir(al.mp), dir(al.lmp), dir(al.lmp_linear)
Full API Changes (for automation & release notes)

Added (autosummary entries)

  • Total [ag.mp] — dPIEMass, dPIEMassSph, PIEMass, dPIEPotential, dPIEPotentialSph
  • Mass Sheets [ag.mp] — ExternalPotential
  • Stellar [ag.mp] — GaussianGradient, SersicCore, SersicCoreSph
  • Dark [ag.mp] — cNFW, cNFWSph, cNFWMCRLudlow, cNFWMCRLudlowSph, cNFWMCRScatterLudlow, cNFWMCRScatterLudlowSph, gNFWVirialMassConcSph, gNFWVirialMassgNFWConcSph, NFWVirialMassConcSph
  • New section — Point Mass [ag.mp] — PointMass, SMBH, SMBHBinary
  • New section — Stellar Light+Mass [ag.lmp] — every class in autogalaxy.profiles.light_and_mass_profiles (Gaussian, GaussianGradient, Sersic, SersicSph, SersicCore, SersicCoreSph, SersicGradient, SersicGradientSph, Exponential, ExponentialSph, ExponentialGradient, ExponentialGradientSph, DevVaucouleurs, DevVaucouleursSph, Chameleon, ChameleonSph)
  • New section — Linear Light+Mass [ag.lmp_linear] — same class list as ag.lmp

Moved

  • PointMass moved from Total [ag.mp] to the new Point Mass [ag.mp] section so the point-mass family (with SMBH / SMBHBinary) lives together.

Removed

  • None

Renamed

  • None

Changed Signature / Changed Behaviour / Migration

  • None — purely additive docs change. No user-facing API affected.

🤖 Generated with Claude Code

Adds every previously-missing al.mp class to the autosummary on
docs/api/mass.rst: dPIE family (dPIEMass, dPIEMassSph, PIEMass,
dPIEPotential, dPIEPotentialSph) in Total, ExternalPotential in Mass
Sheets, GaussianGradient / SersicCore / SersicCoreSph in Stellar,
and the cNFW + virial-mass + truncated NFW variants in Dark
(cNFW, cNFWSph, cNFWMCRLudlow*, cNFWMCRScatterLudlow*,
gNFWVirialMassConcSph, gNFWVirialMassgNFWConcSph,
NFWVirialMassConcSph).

Moves PointMass from the Total section into a new Point Mass
section that also documents SMBH and SMBHBinary.

Adds two new sections:
- Stellar Light+Mass [ag.lmp] — autogalaxy.profiles.light_and_mass_profiles
- Linear Light+Mass [ag.lmp_linear] — autogalaxy.profiles.light_linear_and_mass_profiles

Pure rST change; no Python code modified, no symbols added or
removed. Closes #519. Surfaced as a follow-up while writing the
scripts/guides/profiles/{mass.py,light_and_mass_profiles.py} guides
(autolens_workspace #178 / #180).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 18, 2026
@Jammy2211
Jammy2211 merged commit d522aed into main May 18, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/docs-mass-rst-sync branch May 18, 2026 16:36
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 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.

docs(api): sync mass.rst with full al.mp namespace + add lmp / lmp_linear sections

1 participant