Skip to content

Commit 1332b88

Browse files
committed
update
1 parent e8a4b53 commit 1332b88

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/build-conda.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
#python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14-
#os: [ubuntu-latest, windows-latest, macos-12]
15-
python-version: ["3.11"]
16-
os: [windows-latest]
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
os: [ubuntu-latest, windows-latest, macos-12]
1715
steps:
1816
- uses: actions/checkout@v4
1917

src/pygrib/_pygrib.pyx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,8 @@ cdef class gribmessage(object):
12001200
return longval
12011201
else: # array
12021202
if os.name == 'nt':
1203+
# this should not be necessary since np.int_ should
1204+
# be platform-dependent long, which should map to 32-bits on windows?
12031205
datarr = np.zeros(size, np.int32)
12041206
else:
12051207
datarr = np.zeros(size, np.int_)
@@ -1332,7 +1334,6 @@ cdef class gribmessage(object):
13321334
if self.expand_reduced:
13331335
lonsperlat = self['pl']
13341336
nx = lonsperlat.max()
1335-
print(lonsperlat.dtype,lonsperlat.shape,lonsperlat,nx,ny)
13361337
datarr = redtoreg(datarr, lonsperlat, missval=missval)
13371338
else:
13381339
nx = None
@@ -1571,7 +1572,6 @@ cdef class gribmessage(object):
15711572
ny = self['Nj']
15721573
lonsperlat = self['pl']
15731574
nx = lonsperlat.max()
1574-
print(lonsperlat.dtype,lonsperlat,nx)
15751575
lon1 = self['longitudeOfFirstGridPointInDegrees']
15761576
lon2 = self['longitudeOfLastGridPointInDegrees']
15771577
lons = np.linspace(lon1,lon2,nx)
@@ -1584,7 +1584,6 @@ cdef class gribmessage(object):
15841584
ny = self['Nj']
15851585
lonsperlat = self['pl']
15861586
nx = lonsperlat.max()
1587-
print(lonsperlat.dtype,lonsperlat,nx)
15881587
lat1 = self['latitudeOfFirstGridPointInDegrees']
15891588
lat2 = self['latitudeOfLastGridPointInDegrees']
15901589
lon1 = self['longitudeOfFirstGridPointInDegrees']

0 commit comments

Comments
 (0)