feat: add mass_via_integral reference scripts#13
Merged
Conversation
Standalone scripts preserving the integral-based deflection, potential, and convergence calculations that were removed from PyAutoGalaxy mass profiles. Each script asserts known numerical values for future reference. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
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
Add standalone reference scripts preserving integral-based deflection, potential, and convergence calculations that were removed from PyAutoGalaxy mass profiles. Each script instantiates profiles with known test configurations and asserts expected numerical values.
Scripts Changed
scripts/mass_via_integral/__init__.py— new packagescripts/mass_via_integral/gaussian.py— Gaussian integral deflections (4 configs)scripts/mass_via_integral/sersic.py— Sersic integral deflections (2 configs)scripts/mass_via_integral/sersic_gradient.py— SersicGradient integral deflections (2 configs)scripts/mass_via_integral/nfw.py— NFW integral deflections + potential functions (4 configs)scripts/mass_via_integral/gnfw.py— gNFW integral deflections, potential, convergence (8 configs)scripts/mass_via_integral/gnfw_virial_mass_conc.py— gNFWVirialMassConcSph integral deflections (1 config)Upstream PR
PyAutoLabs/PyAutoGalaxy#324
Test Plan
🤖 Generated with Claude Code