Repository navigation
docs: fill plot.py coverage gaps against the source plot modules - #191
Merged
Merged
Conversation
The per-dataset plot.py family created by the plot-guides-restructure task was never audited for per-file function coverage. Adds the missing fit-level demos, plus a FITS output section: - imaging: subplot_fit_imaging_of_galaxy (per-galaxy subplots), a use_log10 variant of subplot_fit_imaging, fits_imaging - interferometer: fit-level subplot_fit_dirty_images, subplot_fit_real_space, fits_interferometer Note the two distinct dirty-image functions: the dataset-level subplot_interferometer_dirty_images was already demonstrated; the fit-level subplot_fit_dirty_images was not. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Autogalaxy half of PyAutoLabs/PyAutoLens#667.
The
plot-guides-restructuretask created the per-datasetplot.pyfamily but never audited whether each file demonstrates the functions its dataset/fit type actually has. An audit of every public function in the source*_plots.pymodules against everyaplt.*call in the workspace found several used nowhere in the repo — most notablysubplot_fit_real_space, and the fit-levelsubplot_fit_dirty_imageswhich was absent fromplot.pydespite the dataset-levelsubplot_interferometer_dirty_imagesbeing demonstrated.plot.pycoverage rises from 11 → 14 of the 28 symbolsautogalaxy.plotexports.Upstream PR
PyAutoLabs/PyAutoLens#668 — the library leg of the parent issue. No autogalaxy-side dependency: everything this PR calls is already exported by
autogalaxy.plot. Listed for merge-ordering context only; this PR is safe to merge independently of it.Scripts Changed
scripts/imaging/plot.pysubplot_fit_imaging_of_galaxy(per-galaxy subplots,galaxy_index0 and 1), ause_log10=Truevariant ofsubplot_fit_imaging,fits_imagingscripts/interferometer/plot.pysubplot_fit_dirty_images,subplot_fit_real_space,fits_interferometerEach file's
__Contents__index was updated to match, and each file's__Visualizer__section remains last. Notebooks regenerated from scripts (never edited directly).Note the two distinct dirty-image functions, which is what made this gap easy to miss: dataset-level
subplot_interferometer_dirty_images(already demonstrated) versus fit-levelsubplot_fit_dirty_images(was not).Test Plan
MPLBACKEND=Agg,PYAUTO_TEST_MODE=1). 2/2 ran to completion through their finalVisualizerprint. Sequential because parallel workspace runs fake failures through shared state.git status --porcelainshowed only the intended files. Thefits_*sections write tooutput/plot/…, confirmed gitignored viagit check-ignore.Deliberately excluded, with reasons
subplot_ellipse_errors— takesfit_pdf_list: List[List[FitEllipse]], one inner list per posterior sample. A standaloneplot.pyruns no search, so demonstrating it needs a real model-fit. Filed as a follow-up rather than faked with synthetic samples.subplot_galaxies,subplot_galaxy_light_profiles,subplot_galaxy_mass_profiles,subplot_galaxy_images,subplot_basis_image,subplot_adapt_images) — already covered inguides/. Not duplicated;plot.pyowns dataset+fit plotting for its own data type.subplot_parameters,log_likelihood_vs_iteration,output_figure,corner_anesthetic) —guides/plot/searches.pyandguides/results/material.Generated by the PyAutoLabs agent workflow.