Repository navigation
docs: refresh Basis + dPIEPotential examples after #425 - #183
Merged
Merged
Conversation
Workspace follow-up to PyAutoGalaxy #425. Two changes: 1. profiles/light.py Basis section — same fix as in autogalaxy_workspace: drop the Galaxy-wrap workaround, switch the demo from ag.lp_linear.Gaussian to ag.lp.Gaussian with explicit decreasing intensities so the plotted MGE shape is meaningful. 2. profiles/mass.py Remaining Walkthrough — swap the dPIEPotentialSph block for the elliptical dPIEPotential now that its convergence_2d_from returns Array2D (was VectorYX2D before #425 shipped). dPIEPotential was the originally-intended example; Sph was used as a fallback while the wrapper bug was outstanding. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
Workspace follow-up to PyAutoGalaxy #425 (
profile-return-type-fixes). Two cleanups:scripts/guides/profiles/light.pyBasis section — same fix as in the parallelautogalaxy_workspace PR (
docs: refresh Basis demo in profiles/light.py after #425):drop the Galaxy-wrap workaround now that
Basis.image_2d_fromreturnsArray2Duniformly, and switch the demo from
al.lp_linear.Gaussiantoal.lp.Gaussianwithexplicit decreasing intensities so the plotted MGE shape is meaningful (the all-linear
demo silently rendered a black square because the linear inversion hadn't run).
scripts/guides/profiles/mass.pyRemaining Walkthrough — swap theal.mp.dPIEPotentialSphexample for the ellipticalal.mp.dPIEPotentialnow that itsconvergence_2d_fromreturnsArray2D(wasVectorYX2Dbefore docs: point-source solved-variant guides (phase 4 of #657) #425). The ellipticalvariant was the originally-intended example; the spherical was used as a fallback
while the wrapper bug was outstanding.
Closes #182.
Scripts Changed
scripts/guides/profiles/light.py— Basis section: swap foural.lp_linear.Gaussianconstituents for four
al.lp.Gaussianwith explicit decreasing intensities; drop thebasis_galaxy = al.Galaxy(...)wrap; plotbasis.image_2d_from(grid=grid)directly;rewrite the surrounding prose for the standard-vs-linear framing.
scripts/guides/profiles/mass.py— Remaining Walkthrough: replace theal.mp.dPIEPotentialSph(...)block with an ellipticalal.mp.dPIEPotential(...)block..script_sizes.json— refreshed snapshot.Test Plan
PYAUTO_TEST_MODE=2 ... python scripts/guides/profiles/light.pyexits 0PYAUTO_TEST_MODE=2 ... python scripts/guides/profiles/mass.pyexits 0smoke_tests.txtcurated set still passesscripts/check_sizes.shpasses🤖 Generated with Claude Code