Skip to content

Commit

Permalink
FIX: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bzah committed Jan 28, 2022
1 parent 45fd3d9 commit 3e48214
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
21 changes: 0 additions & 21 deletions icclim/tests/unit_tests/test_ecad_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,6 @@ def test_error(self):
EcadIndex.lookup("cacahuête")


@pytest.mark.parametrize("use_dask", [True, False])
def test_tn10p_interpolation_error(use_dask):
ds = Dataset()
ds["tas"] = stub_tas(use_dask=use_dask)
conf = IndexConfig(
ds=ds,
slice_mode=Frequency.MONTH,
var_name=["tas"],
index=EcadIndex.TN10P,
netcdf_version=NetcdfVersion.NETCDF4,
base_period_time_range=[
ds.time.values[0].astype("M8[D]").astype("O"),
ds.time.values[-1].astype("M8[D]").astype("O"),
],
window_width=2,
interpolation=QuantileInterpolation.LINEAR,
)
with pytest.raises(InvalidIcclimArgumentError):
tn10p(conf)


@pytest.mark.parametrize("use_dask", [True, False])
def test_tn10p(use_dask):
ds = Dataset()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ netCDF4~=1.5.7
numpy~=1.21.1
pandas~=1.3.1
pytest~=6.2.4
pyyaml=6.0
pyyaml==6.0
setuptools~=49.6.0
xarray~=0.19.0
xclim~=0.30.0

0 comments on commit 3e48214

Please sign in to comment.