Skip to content

Commit d8010ac

Browse files
committed
Fix depreceted syntax in _epr.pyx
1 parent 8fab1f4 commit d8010ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/epr/_epr.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ cdef class Field(EprObject):
689689
"""
690690
cdef void* buf = NULL
691691
cdef int ndim = 1
692-
cdef np.npy_intp shape[1]
692+
cdef np.npy_intp[1] shape
693693
cdef np.ndarray out
694694
cdef EPR_Time* t = NULL
695695
cdef np.NPY_TYPES dtype
@@ -1391,7 +1391,7 @@ cdef class Raster(EprObject):
13911391
# --- high level interface ------------------------------------------------
13921392
cdef np.ndarray toarray(self):
13931393
cdef np.NPY_TYPES dtype = _epr_to_numpy_type_id(self._ptr.data_type)
1394-
cdef np.npy_intp shape[2]
1394+
cdef np.npy_intp[2] shape
13951395
cdef np.ndarray result
13961396

13971397
if dtype == np.NPY_NOTYPE:

0 commit comments

Comments
 (0)