Skip to content

feat: add mass_via_integral reference scripts#13

Merged
Jammy2211 merged 1 commit intomainfrom
feature/remove-deflection-integral
Apr 6, 2026
Merged

feat: add mass_via_integral reference scripts#13
Jammy2211 merged 1 commit intomainfrom
feature/remove-deflection-integral

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

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 package
  • scripts/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

  • Smoke tests pass for all 4 workspaces (9 known TEST_MODE=2 failures unrelated)

🤖 Generated with Claude Code

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>
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.

1 participant