Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
EricEngle-NOAA committed Aug 1, 2024
1 parent 8cc3904 commit ee1fcba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_macosx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ jobs:
- name: Test with pytest
run: |
python --version
#pytest
pytest
3 changes: 3 additions & 0 deletions tests/test_grib2_interp_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
import datetime
import grib2io
import grib2io_interp

# Grid specs to interp to (NBM CONUS 5KM)
gdtn_nbm = 30
Expand All @@ -13,6 +14,8 @@
nx = gdt_nbm[7]
ny = gdt_nbm[8]

print(f'{grib2io_interp.__version__ = }')

def _writer(path,a):
"""
"""
Expand Down
3 changes: 3 additions & 0 deletions tests/test_grib2_interp_to_stations_scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
import numpy as np
import datetime
import grib2io
import grib2io_interp

# Test stations
# KPHL, KPIT, KMFL, KORD, KDEN, KSFO
lats = [ 39.8605, 40.4846, 25.7542, 41.9602, 39.8466, 37.6196]
lons = [ -75.2708, -80.2145, -80.3839, -87.9316,-104.6562,-122.3656]

print(f'{grib2io_interp.__version__ = }')

def test_bicubic_interp_to_stations(request):
data = request.config.rootdir / 'tests' / 'input_data'
with grib2io.open(data / 'gfs.t00z.pgrb2.1p00.f024') as f:
Expand Down
3 changes: 3 additions & 0 deletions tests/test_grib2_interp_to_stations_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
import datetime
import grib2io
import grib2io_interp

np.set_printoptions(formatter={'float': '{: 0.5f}'.format})

Expand All @@ -10,6 +11,8 @@
lats = [ 39.8605, 40.4846, 25.7542, 41.9602, 39.8466, 37.6196]
lons = [ -75.2708, -80.2145, -80.3839, -87.9316,-104.6562,-122.3656]

print(f'{grib2io_interp.__version__ = }')

def test_bicubic_interp_to_stations(request):
data = request.config.rootdir / 'tests' / 'input_data'
with grib2io.open(data / 'gfs.t00z.pgrb2.1p00.f024') as f:
Expand Down

0 comments on commit ee1fcba

Please sign in to comment.