Esempio n. 1
0
 def test_run_start_at_0(self, pr_series):
     a = np.zeros(365) + 10
     a[:10] = 0
     pr = pr_series(a)
     out = xci.maximum_consecutive_dry_days(pr, freq="M")
     assert out[0] == 10
Esempio n. 2
0
 def test_simple(self, pr_series):
     a = np.zeros(365) + 10
     a[5:15] = 0
     pr = pr_series(a)
     out = xci.maximum_consecutive_dry_days(pr, freq="M")
     assert out[0] == 10