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
  • Loading branch information
pre-commit-ci[bot] committed Dec 6, 2023
1 parent d909a4f commit 3777c41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions icclim/generic_indices/generic_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ def fraction_of_total(
total = (
study.where(threshold.operator(study, min_val))
# study.where(threshold.operator(study, threshold.threshold_min_value.m))
.resample(time=resample_freq.pandas_freq)
.sum(dim="time")
.resample(time=resample_freq.pandas_freq).sum(dim="time")
)
else:
total = study.resample(time=resample_freq.pandas_freq).sum(dim="time")
Expand Down
2 changes: 1 addition & 1 deletion icclim/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def test_index_prcptot(self):
np.testing.assert_array_almost_equal(res.PRCPTOT.isel(time=0), 42)

def test_index_r75ptot(self):
pr = stub_pr(value=2.32e-05) # about 2 mm/day
pr = stub_pr(value=2.32e-05) # about 2 mm/day
pr.attrs["units"] = "kg m-2 s-1"
pr[:10] = 2e-03
res = icclim.r75ptot(
Expand Down

0 comments on commit 3777c41

Please sign in to comment.