File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1196,13 +1196,12 @@ cdef class gribmessage(object):
1196
1196
raise RuntimeError (_get_error_message(err))
1197
1197
return longval
1198
1198
else : # array
1199
- # if os.name == 'nt':
1200
- # # this should not be necessary since np.int_ should
1201
- # # be platform-dependent long, which should map to 32-bits on windows?
1202
- # datarr = np.zeros(size, np.int32)
1203
- # else:
1204
- # datarr = np.zeros(size, np.int_)
1205
- datarr = np.zeros(size, np.int_)
1199
+ if os.name == ' nt' :
1200
+ # this should not be necessary since np.int_ should
1201
+ # be platform-dependent long, which should map to 32-bits on windows?
1202
+ datarr = np.zeros(size, np.int32)
1203
+ else :
1204
+ datarr = np.zeros(size, np.int_)
1206
1205
err = grib_get_long_array(self ._gh, name, < long * > datarr.data, & size)
1207
1206
if err:
1208
1207
raise RuntimeError (_get_error_message(err))
You can’t perform that action at this time.
0 commit comments