Skip to content

Commit fda689c

Browse files
committed
attempt to fix failing windows tests
1 parent 02651be commit fda689c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pygrib/_pygrib.pyx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,9 @@ cdef class gribmessage(object):
13181318
else:
13191319
missval = 1.e30
13201320
if self.expand_reduced:
1321+
lonsperlat = self['pl'].astype(np.int64)
13211322
nx = self['pl'].max()
1322-
datarr = redtoreg(datarr, self['pl'], missval=missval)
1323+
datarr = redtoreg(datarr, lonsperlat, missval=missval)
13231324
else:
13241325
nx = None
13251326
elif self.has_key('Nx') and self.has_key('Ny'):

0 commit comments

Comments
 (0)