Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Jul 3, 2024
1 parent e8a4b53 commit 1332b88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
#os: [ubuntu-latest, windows-latest, macos-12]
python-version: ["3.11"]
os: [windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-12]
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 2 additions & 3 deletions src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,8 @@ cdef class gribmessage(object):
return longval
else: # array
if os.name == 'nt':
# this should not be necessary since np.int_ should
# be platform-dependent long, which should map to 32-bits on windows?
datarr = np.zeros(size, np.int32)
else:
datarr = np.zeros(size, np.int_)
Expand Down Expand Up @@ -1332,7 +1334,6 @@ cdef class gribmessage(object):
if self.expand_reduced:
lonsperlat = self['pl']
nx = lonsperlat.max()
print(lonsperlat.dtype,lonsperlat.shape,lonsperlat,nx,ny)
datarr = redtoreg(datarr, lonsperlat, missval=missval)
else:
nx = None
Expand Down Expand Up @@ -1571,7 +1572,6 @@ cdef class gribmessage(object):
ny = self['Nj']
lonsperlat = self['pl']
nx = lonsperlat.max()
print(lonsperlat.dtype,lonsperlat,nx)
lon1 = self['longitudeOfFirstGridPointInDegrees']
lon2 = self['longitudeOfLastGridPointInDegrees']
lons = np.linspace(lon1,lon2,nx)
Expand All @@ -1584,7 +1584,6 @@ cdef class gribmessage(object):
ny = self['Nj']
lonsperlat = self['pl']
nx = lonsperlat.max()
print(lonsperlat.dtype,lonsperlat,nx)
lat1 = self['latitudeOfFirstGridPointInDegrees']
lat2 = self['latitudeOfLastGridPointInDegrees']
lon1 = self['longitudeOfFirstGridPointInDegrees']
Expand Down

0 comments on commit 1332b88

Please sign in to comment.