Fix cython syntax and port to more recent numpy.pxd
This commit is contained in:
parent
4afc982dfc
commit
0093a6aa0f
3 changed files with 12 additions and 4 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue