Skip to content

Commit

Permalink
Merge pull request #13 from antolonappan/master
Browse files Browse the repository at this point in the history
deflection_028 Numpy 2.0 changes
  • Loading branch information
carronj authored Aug 5, 2024
2 parents bcd02a1 + 9fc3f76 commit b6e1d59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lenspyx/remapping/deflection_028.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@

ctype = {np.dtype(np.float32): np.complex64,
np.dtype(np.float64): np.complex128,
np.dtype(np.longfloat): np.longcomplex,
np.dtype(np.longdouble): np.longdouble,
np.float32: np.complex64,
np.float64: np.complex128,
np.longfloat: np.longcomplex}
np.longdouble: np.longdouble}
rtype = {np.dtype(np.complex64): np.float32,
np.dtype(np.complex128): np.float64,
np.dtype(np.longcomplex): np.longfloat,
np.dtype(np.longdouble): np.longdouble,
np.complex64: np.float32,
np.complex128: np.float64,
np.longcomplex: np.longfloat}
np.longdouble: np.longdouble}

def ducc_sht_mode(gclm, spin):

Expand Down Expand Up @@ -680,4 +680,4 @@ def get_spin_lower(s, lmax):
"""
ret = np.zeros(lmax + 1, dtype=float)
ret[abs(s):] = -np.sqrt(np.arange(s + abs(s), lmax + s + 1) * np.arange(abs(s) - s + 1, lmax - s + 2))
return ret
return ret

0 comments on commit b6e1d59

Please sign in to comment.