Skip to content

docs: fix stale autosummary entries breaking the docs build#635

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautoconf-pyautonerves-rename-ik0cgu
Jul 19, 2026
Merged

docs: fix stale autosummary entries breaking the docs build#635
Jammy2211 merged 1 commit into
mainfrom
claude/pyautoconf-pyautonerves-rename-ik0cgu

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

What

Fix two stale Sphinx autosummary entries that have kept the docs build red on main since the potential_correction feature landed (2026-07-17):

  • docs/api/potential_correction.rst used .. currentmodule:: autolens.pc. pc is only an attribute alias (from . import potential_correction as pc in autolens/__init__.py), not a real module path — Sphinx autosummary can't import it, so every class failed (No module named 'pc'). Pointed currentmodule at the real module, autolens.potential_correction (all 15 listed classes are exported there).
  • docs/api/mass.rst listed dPIEMassLenstool / dPIEMassLenstoolSph, which were renamed to dPIEMassB0 / dPIEMassB0Sph in autogalaxy.profiles.mass.

Why

The docs-build gate fails when the Sphinx warning count exceeds the baseline (docs/sphinx_warning_baseline.txt). Each failed autosummary import emits a multi-line traceback into the warning log; these renamed/aliased entries pushed the count over baseline. Both symbols now import cleanly, removing those warnings.

Validation

Verified against the installed source that every class listed in potential_correction.rst is exported from autolens.potential_correction, and that dPIEMassB0 / dPIEMassB0Sph are exported from autogalaxy.profiles.mass. Docs docs-build CI on this PR is the check to confirm the warning count is back under baseline.

🤖 Generated with Claude Code

https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN


Generated by Claude Code

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ciVftxvYpefh59wSkR7jN
@Jammy2211
Jammy2211 merged commit 18afa98 into main Jul 19, 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