Skip to content

Commit

Permalink
test: Reactivating tests and updating those
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Oct 6, 2023
1 parent 71998aa commit 10ee891
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions tests/test_inrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,34 +65,30 @@ def test_matchup_L2_day_line():
assert data.lon.max() > 0



@pytest.mark.skip()
def test_matchup_L3m():
ds = db["A2017012.L3m_DAY_CHL_chlor_a_4km.nc"]
ds = db["AQUA_MODIS.20170112.L3m.DAY.CHL.chlor_a.4km.nc"]
dL_tol = 12e3
dt_tol = timedelta64(6, 'h')
track = DataFrame([
{"time": datetime64("2017-01-12 20:00:00"), "lat": 34, "lon": -126}])
data = matchup_L3m(track, ds, dL_tol, dt_tol)

# Dummy check
assert data.index.size == 7
assert data.size == 42
assert data.index.size == 23
assert data.size == 138



@pytest.mark.skip()
def test_matchup():
ds = db["A2017012.L3m_DAY_CHL_chlor_a_4km.nc"]
ds = db["AQUA_MODIS.20170112.L3m.DAY.CHL.chlor_a.4km.nc"]
dL_tol = 12e3
dt_tol = timedelta64(6, 'h')
track = DataFrame([
{"time": datetime64("2017-01-12 20:00:00"), "lat": 34, "lon": -126}])
data = matchup(track, ds, dL_tol, dt_tol)

# Dummy check
assert data.index.size == 7
assert data.size == 42
assert data.index.size == 23
assert data.size == 138


@pytest.mark.skip()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_parse_filename_AL2():
descriptors = parse_filename(filename)

ans = {
"platform": "A",
"platform": "AQUA_MODIS",
"year": "2011",
"doy": "010",
"time": "000000",
Expand Down

0 comments on commit 10ee891

Please sign in to comment.