Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2023
1 parent 4c5e9ea commit 7c64e9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ History

* CMD_ calm days

* documentation:
* documentation:

* how to implement a new project
* how to implement a new indicator
12 changes: 7 additions & 5 deletions tests/test_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,22 +812,24 @@ def test_FXx():
)
np.testing.assert_allclose(result, [23], rtol=1e-03)


def test_HIX():
idx_class = indices.HIX()
result = idx_class.compute(
tas=tas_xarray(),
hurs=hurs_xarray(),
)
np.testing.assert_allclose(result, [-4.977235, -14.36269 , -4.706667, 17.962594, 29.079492, 3.561291, -12.997314], rtol=1e-03)
np.testing.assert_allclose(
result,
[-4.977235, -14.36269, -4.706667, 17.962594, 29.079492, 3.561291, -12.997314],
rtol=1e-03,
)



def test_CMD():
idx_class = indices.CMD()
result = idx_class.compute(
sfcWind=sfcWind_xarray(),
freq="7D",
)
np.testing.assert_allclose(result, [1], rtol=1e-03)


0 comments on commit 7c64e9a

Please sign in to comment.