1 parent 8fab1f4 commit d8010acCopy full SHA for d8010ac
1 file changed
src/epr/_epr.pyx
@@ -689,7 +689,7 @@ cdef class Field(EprObject):
689
"""
690
cdef void* buf = NULL
691
cdef int ndim = 1
692
- cdef np.npy_intp shape[1]
+ cdef np.npy_intp[1] shape
693
cdef np.ndarray out
694
cdef EPR_Time* t = NULL
695
cdef np.NPY_TYPES dtype
@@ -1391,7 +1391,7 @@ cdef class Raster(EprObject):
1391
# --- high level interface ------------------------------------------------
1392
cdef np.ndarray toarray(self):
1393
cdef np.NPY_TYPES dtype = _epr_to_numpy_type_id(self._ptr.data_type)
1394
- cdef np.npy_intp shape[2]
+ cdef np.npy_intp[2] shape
1395
cdef np.ndarray result
1396
1397
if dtype == np.NPY_NOTYPE:
0 commit comments