Replace plotter class imports with flat function imports#413
Merged
Conversation
Remove NestPlotter/MCMCPlotter/MLEPlotter imports from plot __init__, replace with corner_cornerpy, corner_anesthetic, subplot_parameters, log_likelihood_vs_iteration function imports. Update API docs. Co-Authored-By: Claude Opus 4.6 (1M context) <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
Replace imports of removed
NestPlotter/MCMCPlotter/MLEPlotterclasses inautolens/plot/__init__.pywith the new module-level functions from PyAutoFit. Update API docs accordingly.API Changes
The
autolens.plotnamespace no longer re-exportsNestPlotter,MCMCPlotter,MLEPlotter. Instead it exportscorner_cornerpy,corner_anesthetic,subplot_parameters,log_likelihood_vs_iteration, andoutput_figure.See full details below.
Test Plan
pytest test_autolens/ -x— 254 passed📋 Full API Changes (for automation & release notes)
Removed
autolens.plot.NestPlotter— was re-exported fromautofit.non_linear.plot.nest_plottersautolens.plot.MCMCPlotter— was re-exported fromautofit.non_linear.plot.mcmc_plottersautolens.plot.MLEPlotter— was re-exported fromautofit.non_linear.plot.mle_plottersAdded
autolens.plot.corner_cornerpy— re-exported fromautofit.non_linear.plotautolens.plot.corner_anesthetic— re-exported fromautofit.non_linear.plotautolens.plot.subplot_parameters— re-exported fromautofit.non_linear.plotautolens.plot.log_likelihood_vs_iteration— re-exported fromautofit.non_linear.plotautolens.plot.output_figure— re-exported fromautofit.non_linear.plotMigration
import autolens.plot as aplt; plotter = aplt.NestPlotter(samples=s); plotter.corner_anesthetic()import autolens.plot as aplt; aplt.corner_anesthetic(samples=s)🤖 Generated with Claude Code