Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion autogalaxy/profiles/light/standard/shapelets/exponential.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ def image_2d_from(
The image of the Exponential Shapelet evaluated at every (y,x) coordinate on the transformed grid.
"""
from scipy.special import genlaguerre
from jax.scipy.special import factorial

# factorial backend switch
if xp is np:
from scipy.special import factorial
else:
from jax.scipy.special import factorial

radial = (grid.array[:, 0] ** 2 + grid.array[:, 1] ** 2) / self.beta
theta = xp.arctan(grid.array[:, 1] / grid.array[:, 0])
Expand Down
Loading