Skip to content

fix: add xp=np to convergence_func across all mass profiles#457

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/convergence-func-xp
May 27, 2026
Merged

fix: add xp=np to convergence_func across all mass profiles#457
Jammy2211 merged 1 commit into
mainfrom
feature/convergence-func-xp

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Add missing xp=np parameter to convergence_func in 5 locations where it was absent: MassProfile base class, ExternalShear, ExternalPotential, MassSheet, and SersicGradient. This allows MGEDecomposer.decompose_convergence_via_mge to call convergence_func(xp=xp) without TypeError, unblocking MGE-based potential computation for PowerLawBroken, dPIE, and SersicGradient profiles. Fixes #456.

API Changes

Added xp=np keyword to 5 convergence_func signatures. Default is np so existing callers are unaffected.

Test Plan

  • pytest test_autogalaxy/profiles/mass/ — 406 passed, 0 failed

🤖 Generated with Claude Code

Add missing xp=np parameter to convergence_func in 5 locations:
MassProfile base class, ExternalShear, ExternalPotential, MassSheet,
and SersicGradient. This allows MGEDecomposer.decompose_convergence_via_mge
to call convergence_func(xp=xp) without TypeError.

Fixes #456.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 27, 2026
@Jammy2211 Jammy2211 merged commit 2f74a7a into main May 27, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/convergence-func-xp branch May 27, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: add xp=np to convergence_func across all mass profiles

1 participant