Skip to content

docs: refresh Basis + dPIEPotential examples after #425 - #183

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/profile-guide-followup-cleanup
May 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/profile-guide-followup-cleanup

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Workspace follow-up to PyAutoGalaxy #425 (profile-return-type-fixes). Two cleanups:

  1. scripts/guides/profiles/light.py Basis section — same fix as in the parallel
    autogalaxy_workspace PR (docs: refresh Basis demo in profiles/light.py after #425):
    drop the Galaxy-wrap workaround now that Basis.image_2d_from returns Array2D
    uniformly, and switch the demo from al.lp_linear.Gaussian to al.lp.Gaussian with
    explicit 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).
  2. scripts/guides/profiles/mass.py Remaining Walkthrough — swap the
    al.mp.dPIEPotentialSph example for the elliptical al.mp.dPIEPotential now that its
    convergence_2d_from returns Array2D (was VectorYX2D before docs: point-source solved-variant guides (phase 4 of #657) #425). The elliptical
    variant 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 four al.lp_linear.Gaussian
    constituents for four al.lp.Gaussian with explicit decreasing intensities; drop the
    basis_galaxy = al.Galaxy(...) wrap; plot basis.image_2d_from(grid=grid) directly;
    rewrite the surrounding prose for the standard-vs-linear framing.
  • scripts/guides/profiles/mass.py — Remaining Walkthrough: replace the
    al.mp.dPIEPotentialSph(...) block with an elliptical al.mp.dPIEPotential(...) block.
  • .script_sizes.json — refreshed snapshot.

Test Plan

  • Smoke run: PYAUTO_TEST_MODE=2 ... python scripts/guides/profiles/light.py exits 0
  • Smoke run: PYAUTO_TEST_MODE=2 ... python scripts/guides/profiles/mass.py exits 0
  • Workspace smoke_tests.txt curated set still passes
  • scripts/check_sizes.sh passes

🤖 Generated with Claude Code

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)
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 18, 2026
@Jammy2211
Jammy2211 merged commit cbd103b into main May 18, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/profile-guide-followup-cleanup branch May 18, 2026 18:56
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: refresh Basis / dPIEPotential examples in profiles guides after #425

1 participant