From fe991e61f7e268bafb81374eb258192317aff51c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 19 Jul 2026 11:04:54 +0000 Subject: [PATCH] docs: fix stale autosummary entries breaking the docs build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docs build has been red on main since the potential_correction feature landed (2026-07-17): - docs/api/potential_correction.rst used `currentmodule:: autolens.pc`, but `pc` is only an attribute alias (`from . import potential_correction as pc`) and cannot be imported as a module path by Sphinx autosummary — every class failed to import ("No module named 'pc'"). Point currentmodule at the real module, `autolens.potential_correction`. - docs/api/mass.rst listed `dPIEMassLenstool` / `dPIEMassLenstoolSph`, which were renamed to `dPIEMassB0` / `dPIEMassB0Sph` in autogalaxy.profiles.mass. Both are now importable, removing the autosummary import-failure warnings that pushed the Sphinx warning count over its baseline. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN --- docs/api/mass.rst | 4 ++-- docs/api/potential_correction.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/mass.rst b/docs/api/mass.rst index 368f617cb..cccfab6ce 100644 --- a/docs/api/mass.rst +++ b/docs/api/mass.rst @@ -24,8 +24,8 @@ Total [ag.mp] IsothermalSph dPIEMass dPIEMassSph - dPIEMassLenstool - dPIEMassLenstoolSph + dPIEMassB0 + dPIEMassB0Sph PIEMass dPIEPotential dPIEPotentialSph diff --git a/docs/api/potential_correction.rst b/docs/api/potential_correction.rst index 0f074044d..a2326beb4 100644 --- a/docs/api/potential_correction.rst +++ b/docs/api/potential_correction.rst @@ -13,7 +13,7 @@ functionality in your research, please cite Cao et al. 2025; citation materials are provided at https://github.com/caoxiaoyue/potential_correction_paper. -.. currentmodule:: autolens.pc +.. currentmodule:: autolens.potential_correction .. autosummary:: :toctree: _autosummary