File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1051,7 +1051,7 @@ cdef class gribmessage(object):
1051
1051
raise RuntimeError (grib_get_error_message(err))
1052
1052
elif typ == GRIB_TYPE_LONG:
1053
1053
# is value an array or a scalar?
1054
- datarr = np.asarray(value, np. int)
1054
+ datarr = np.asarray(value, int )
1055
1055
is_array = False
1056
1056
if datarr.shape:
1057
1057
is_array = True
@@ -1071,7 +1071,7 @@ cdef class gribmessage(object):
1071
1071
raise RuntimeError (grib_get_error_message(err))
1072
1072
elif typ == GRIB_TYPE_DOUBLE:
1073
1073
# is value an array or a scalar?
1074
- datarr = np.asarray(value, np. float)
1074
+ datarr = np.asarray(value, float )
1075
1075
is_array = False
1076
1076
if datarr.shape:
1077
1077
is_array = True
@@ -1142,7 +1142,7 @@ cdef class gribmessage(object):
1142
1142
storageorder= ' F'
1143
1143
else :
1144
1144
storageorder= ' C'
1145
- datarr = np.zeros(size, np. int, order = storageorder)
1145
+ datarr = np.zeros(size, int , order = storageorder)
1146
1146
err = grib_get_long_array(self ._gh, name, < long * > datarr.data, & size)
1147
1147
if err:
1148
1148
raise RuntimeError (grib_get_error_message(err))
You can’t perform that action at this time.
0 commit comments