Skip to content

Commit

Permalink
np.int -> int (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mreineck authored Mar 31, 2023
1 parent 77ba6b0 commit 5767597
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/_libqpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
arr = NDP(np.double, ndim=1, flags=['A', 'C'])
arrf = NDP(np.uint8, ndim=1, flags=['A', 'C'])
warr = NDP(np.double, ndim=1, flags=['A', 'C', 'W'])
warri = NDP(np.int_, ndim=1, flags=['A', 'C', 'W'])
warri = NDP(int, ndim=1, flags=['A', 'C', 'W'])

arr2 = NDP(np.uintp, ndim=1, flags=['A', 'C'])
larr = NDP(np.int_, ndim=1, flags=['A', 'C'])
larr = NDP(int, ndim=1, flags=['A', 'C'])

QP_DO_ALWAYS = ct.c_int.in_dll(libqp, "QP_DO_ALWAYS").value
QP_DO_ONCE = ct.c_int.in_dll(libqp, "QP_DO_ONCE").value
Expand Down
8 changes: 4 additions & 4 deletions python/qpoint_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ def quat2pixpa(self, quat, nside=256, **kwargs):

quat = check_input('quat', np.atleast_2d(quat), quat=True)
n = quat.shape[0]
pix = check_output('pix', shape=(n,), dtype=np.int, **kwargs)
pix = check_output('pix', shape=(n,), dtype=int, **kwargs)
pa = check_output('pa', shape=(n,), dtype=np.double, **kwargs)

qp.qp_quat2pixpan(self._memory, quat, pix, pa, n)
Expand Down Expand Up @@ -1387,7 +1387,7 @@ def radec2pix(self, ra, dec, nside=256, **kwargs):
ra, dec = check_inputs(ra, dec)
n = ra.size

pix = check_output('pix', shape=ra.shape, dtype=np.int, **kwargs)
pix = check_output('pix', shape=ra.shape, dtype=int, **kwargs)
qp.qp_radec2pixn(self._memory, ra, dec, nside, pix, n)

if n == 1:
Expand Down Expand Up @@ -1691,7 +1691,7 @@ def quat2pix(self, quat, nside=256, pol=True, **kwargs):

n = quat.shape[0]
shape = (n,)
pix = check_output('pix', shape=shape, dtype=np.int, **kwargs)
pix = check_output('pix', shape=shape, dtype=int, **kwargs)
sin2psi = check_output('sin2psi', shape=shape, **kwargs)
cos2psi = check_output('cos2psi', shape=shape, **kwargs)
qp.qp_quat2pixn(self._memory, quat, nside, pix, sin2psi, cos2psi, n)
Expand Down Expand Up @@ -1765,7 +1765,7 @@ def bore2pix(
raise ValueError('ctime required if mean_aber is False')
ctime = np.zeros((q_bore.size // 4,), dtype=q_bore.dtype)
ctime = check_input('ctime', ctime)
pix = check_output('pix', shape=ctime.shape, dtype=np.int, **kwargs)
pix = check_output('pix', shape=ctime.shape, dtype=int, **kwargs)
if return_pa:
pa = check_output('pa', shape=ctime.shape, **kwargs)
else:
Expand Down

0 comments on commit 5767597

Please sign in to comment.