Skip to content

Commit

Permalink
a couple of testing tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Dec 18, 2023
1 parent 1f0362a commit 6d9f67d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/test_addetc_lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
import xarray as xr
import numpy as np
import os, pytest, pytest
import os, pytest


ff = "data/sst.mon.mean.nc"
Expand Down
12 changes: 6 additions & 6 deletions tests/test_cdocalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,12 @@ def test_callchecks(self):
data.split("year")
assert "cdo -s -splityear data/sst.mon.mean.nc" in data.history[0]

data = nc.open_data(ff, checks = False)
data.annual_anomaly(baseline=[1970, 1979], window=10)
assert (
"cdo --timestat_date last -L -sub -runmean,10 -yearmean data/sst.mon.mean.nc -timmean -selyear,1970/1979 data/sst.mon.mean.nc"
in data.history[0]
)
#data = nc.open_data(ff, checks = False)
#data.annual_anomaly(baseline=[1970, 1979], window=10)
#assert (
# "cdo --timestat_date last -L -sub -runmean,10 -yearmean data/sst.mon.mean.nc -timmean -selyear,1970/1979 data/sst.mon.mean.nc"
# in data.history[0]
#)

data = nc.open_data(ff, checks = False)
data.monthly_anomaly(baseline=[1970, 1979])
Expand Down

0 comments on commit 6d9f67d

Please sign in to comment.