rleft, rright, zleft, zright, \
cleft, cright, thetaleft, thetaright, \
tmleft, tpleft, tmright, tpright, tsect
- cdef np.ndarray[np.int64_t, ndim=1, cast=True] inds, tinds, sinds
+ cdef np.ndarray[np.int_t, ndim=1, cast=True] inds, tinds, sinds
cdef np.ndarray[np.float64_t, ndim=2] xyz, rztheta, ptemp, b1, b2, dsect
# set up points
tsect, dsect = _cart_intersect(p1cart, p2cart, _cyl2cart(b1), _cyl2cart(b2))
tmask = np.logical_and(0.0<=tsect, tsect<=1.0)
ret = np.unique(tsect[tmask], return_index=True)
- tsect, tinds = ret[0], ret[1].astype('int64')
+ tsect, tinds = ret[0], ret[1].astype('int')
inds = inds[tmask][tinds]
xyz = dsect[tmask][tinds]
s = np.sqrt(((xyz - p1cart) * (xyz - p1cart)).sum(axis=1))
ret = np.unique(s, return_index=True)
- s, sinds = ret[0], ret[1].astype('int64')
+ s, sinds = ret[0], ret[1].astype('int')
inds = inds[sinds]
xyz = xyz[sinds]
t = s/np.sqrt((dpcart*dpcart).sum())