Skip to content

Commit

Permalink
attempt to fix failing windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Jul 2, 2024
1 parent 02651be commit fda689c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,9 @@ cdef class gribmessage(object):
else:
missval = 1.e30
if self.expand_reduced:
lonsperlat = self['pl'].astype(np.int64)
nx = self['pl'].max()
datarr = redtoreg(datarr, self['pl'], missval=missval)
datarr = redtoreg(datarr, lonsperlat, missval=missval)
else:
nx = None
elif self.has_key('Nx') and self.has_key('Ny'):
Expand Down

0 comments on commit fda689c

Please sign in to comment.