Fix cython syntax and port to more recent numpy.pxd

This commit is contained in:
Guilhem Lavaux 2023-12-06 09:28:36 +01:00
parent 4afc982dfc
commit 0093a6aa0f
3 changed files with 12 additions and 4 deletions

View file

@ -727,7 +727,7 @@ cdef DTYPE_t C_line_of_sight_projection(DTYPE_t[:,:,:] density,
cdef int iu0[3]
cdef int i
cdef int N = density.shape[0]
cdef int half_N = density.shape[0]/2
cdef int half_N = density.shape[0]//2
cdef int completed
cdef DTYPE_t I0, d, dist2, delta, s, max_distance2
cdef int jumper[1]