Skip to content

docs: list every aplt export in plot.rst - #863

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/plot-rst-missing-exports
Nov 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/plot-rst-missing-exports

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

docs/api/plot.rst now lists every function that autolens.plot (aplt) exports. 44 exports were missing, including the six named in the task, and there was no "Dataset Subplots" heading for the dataset-level functions.

Closes #862. Companion PR: PyAutoLabs/PyAutoGalaxy#716 (the same change for autogalaxy.plot, plus the docstring fixes that keep this repo's sphinx count at baseline).

API Changes

None. This PR changes documentation only (docs/api/plot.rst).

  • New Dataset Subplots section: subplot_imaging_dataset, subplot_imaging_dataset_intro, subplot_imaging_dataset_list, fits_imaging, subplot_interferometer_dirty_images, fits_interferometer.
  • Added to existing sections:
    • fits_array under Basic plots
    • subplot_fit_imaging_mappings under Imaging Fit
    • subplot_fit_interferometer_tracer under Interferometer
    • plot_image_with_points under Point Source
    • output_figure under Search results
  • New sections for the other exports:
    • Galaxy and Light and Mass Profile subplots
    • Galaxy Fit subplots
    • Ellipse Fit subplots
    • Magnification maps
    • Cluster plots
    • Weak Lensing plots
    • Twin comparisons

Test Plan

  • Export check: an AST parse of autolens/plot/__init__.py against the autosummary entries finds no difference. The only extra rst entry is Output, which is documented on purpose under autoarray.plot. The independent reviewer confirmed this with their own script.
  • Local sphinx warnings, with the PyAutoGalaxy branch on PYTHONPATH: 96 → 96, the same warning set. The CI baseline file stays at 134. Note: without PyAutoGalaxy#716, this build gains 13 |mu| substitution errors from the newly documented magnification docstrings (110 locally). That is still below the CI baseline of 134, but merge feat: test prior config + docs for the AdaptPower regularization siblings #716 first.

Validation checklist (--auto run — plan was not pre-approved)

  • Effective level: safe (header: safe, cap: docs). Shift 2026-11-14-pm3, Consequence: glance.
  • Plan: on docs: add missing aplt exports to plot.rst (autolens + autogalaxy) #862, written at start.
  • Gate: tests n/a (rst only) · smoke n/a (no code) · review: independent Sonnet adversary.
    • Witness clauses 1, 3 and 4 hold.
    • Clause 2 does not hold literally: the Witness says all six named symbols sit under "Dataset Subplots", but subplot_fit_interferometer_tracer is a fit subplot (subplot_tracer_from_fit). It is placed under Interferometer subplots, next to the other subplot_fit_interferometer_* functions. The other five, plus subplot_imaging_dataset_intro, are under Dataset Subplots.
    • Heart GREEN (readiness --dev).
  • Decision taken (labelled decision-taken): I kept subplot_fit_interferometer_tracer with the fit subplots rather than misfiling it to satisfy the Witness wording. If you prefer it under Dataset Subplots, it is a one-line move.
  • Human: plan sound in hindsight?
  • Human: diff matches plan (no scope creep)?
  • Human: merge (after PyAutoGalaxy#716), amend, or reject. Then log the outcome.

Follow-up, not done here: the prompt suggested having /audit_docs check plot.rst autosummary blocks against the live aplt namespace. That would catch this drift automatically.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Adds the plot functions that the plot namespace exports but the API
reference omitted, including a new Dataset Subplots section for the
dataset-level subplot and .fits helpers. Refs #862.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the decision-taken Autonomous run took a flagged decision label Nov 14, 2026
@Jammy2211
Jammy2211 merged commit 4e62a6c into main Nov 16, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/plot-rst-missing-exports branch November 16, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

decision-taken Autonomous run took a flagged decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add missing aplt exports to plot.rst (autolens + autogalaxy)

1 participant