Skip to content

Commit 3fc9543

Browse files
author
Niek Wielders
committed
convergence and potential of cnfw back to zeros instead of error warning
1 parent a1db68c commit 3fc9543

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • autogalaxy/profiles/mass/dark

autogalaxy/profiles/mass/dark/cnfw.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,12 @@ def convergence_2d_from(self, grid: aa.type.Grid2DLike, xp=np, **kwargs):
156156
Convergence (dimensionless surface mass density) for the cored NFW profile.
157157
This is not yet implemented for `cNFWSph`.
158158
"""
159-
raise NotImplementedError(
160-
"convergence_2d_from is not implemented for cNFWSph; a physical cNFW "
161-
"convergence expression must be added before use."
162-
)
159+
return xp.zeros(shape=grid.shape[0])
163160

164161
@aa.grid_dec.to_array
165162
def potential_2d_from(self, grid: aa.type.Grid2DLike, xp=np, **kwargs):
166163
"""
167164
Lensing potential for the cored NFW profile.
168165
This is not yet implemented for `cNFWSph`.
169166
"""
170-
raise NotImplementedError(
171-
"potential_2d_from is not implemented for cNFWSph; a physical cNFW "
172-
"potential expression must be added before use."
173-
)
167+
return xp.zeros(shape=grid.shape[0])

0 commit comments

Comments
 (0)