Repository navigation
Description
Overview
docs/api/plot.rst in PyAutoLens lists only part of what autolens.plot (aplt) exports — 44 exported names have no autosummary entry, including the six dataset/fits functions named in the prompt, and there is no "Dataset Subplots" heading for them. PyAutoGalaxy's plot.rst has the same drift (15 names). This adds every missing export to both files under sensible headings, so the API reference matches the live namespace.
Plan
- Add a Dataset Subplots section to both
plot.rstfiles holding the dataset-level functions (subplot_imaging_dataset,subplot_imaging_dataset_intro,subplot_imaging_dataset_list,fits_imaging,fits_interferometer,subplot_interferometer_dirty_images; autogalaxy also getssubplot_interferometer_dataset). - In PyAutoLens, add the other missing exports to existing sections where they fit (imaging mappings, interferometer tracer, point image overlay,
fits_array,output_figure) and new sections for the re-exported galaxy/profile subplots, ellipse fits, magnification maps, cluster plots, weak-lensing plots and twin comparisons. - In PyAutoGalaxy, add
fits_array,subplot_fit_imaging_list,output_figureand a magnification section. - Check: export-vs-autosummary diff empty in both repos (only
Output, documented underautoarray.plot, sits outside); sphinx warning count at or below each repo's baseline. - Out of scope: extending
/audit_docsto checkplot.rstagainst the liveapltnamespace — noted as a follow-up.
Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary
Detailed implementation plan
Affected Repositories: PyAutoLens (primary), PyAutoGalaxy
Suggested branch: feature/plot-rst-missing-exports
Worktree root: ~/Code/PyAutoLabs-wt/plot-rst-missing-exports/
Key files
PyAutoLens/docs/api/plot.rstPyAutoGalaxy/docs/api/plot.rst
Steps
- Diff the names imported in
<pkg>/plot/__init__.pyagainst the autosummary entries indocs/api/plot.rst(AST parse of the import list; regex over autosummary lines). - PyAutoLens additions:
- Basic plots:
fits_array - new Dataset Subplots: the six named +
subplot_imaging_dataset_intro - Imaging Fit:
subplot_fit_imaging_mappings; Interferometer:subplot_fit_interferometer_tracer; Point Source:plot_image_with_points - new sections: Galaxy and profile subplots (autogalaxy re-exports), Ellipse Fit, Magnification maps, Cluster, Weak lensing, Twin comparison
- Search results (
autofit.plot):output_figure
- Basic plots:
- PyAutoGalaxy additions:
fits_array, Dataset Subplots (7),subplot_fit_imaging_list, Magnification maps,output_figure. - Build sphinx locally (
python -m sphinx -b html docs … -w warnings.log) before and after; count must not exceeddocs/sphinx_warning_baseline.txt.
Testing: docs-only — the export diff and the sphinx build; CI Docs workflow re-checks the warning count.
Prompt: PyAutoMind/draft/docs/autolens/plot_rst_missing_exports.md (shift 2026-11-14-pm3).
Activity
Jammy2211 commentedon Nov 14, 2026
Library PRs created (shift 2026-11-14-pm3, --auto)
plot.rstadds 15 missing exports, with a new Dataset Subplots and a Magnification maps section. It also fixes two docstrings:|mu|is written as a literal, and a field-list paragraph is moved.plot.rstadds 44 missing exports, with a new Dataset Subplots section and sections for galaxy/profile, ellipse, magnification, cluster, weak-lensing and twin plots.Witness
subplot_fit_interferometer_traceris a fit subplot, so I kept it under Interferometer subplots.Decision taken. Both PRs are labelled
decision-taken, so a human merges them with/prm:Merge order: PyAutoGalaxy#716 first, then PyAutoLens#863.
Workspace impact: none, docs only (option iii).
Follow-up, not done here: extend
/audit_docsto checkplot.rstagainst the liveapltnamespace.