Commit 5f2a9716 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix typo in subtest variable name

1 merge request!1release v0.1.0.0
Pipeline #43045 failed with stage
in 3 minutes and 1 second
Showing with 4 additions and 4 deletions
+4 -4
...@@ -96,7 +96,7 @@ class TestMasking(unittest.TestCase): ...@@ -96,7 +96,7 @@ class TestMasking(unittest.TestCase):
) )
def test_conditions(self): def test_conditions(self):
with self.subTest(condtions="observed streamflow values"): with self.subTest(conditions="observed streamflow values"):
cdt = numpy.array(["q_obs{<2000,>3000}"], dtype='|S32') cdt = numpy.array(["q_obs{<2000,>3000}"], dtype='|S32')
msk = (_obs[0] < 2000) | (_obs[0] > 3000) msk = (_obs[0] < 2000) | (_obs[0] > 3000)
...@@ -109,7 +109,7 @@ class TestMasking(unittest.TestCase): ...@@ -109,7 +109,7 @@ class TestMasking(unittest.TestCase):
evalhyd.evald(obs, prd, ["NSE"])[0] evalhyd.evald(obs, prd, ["NSE"])[0]
) )
with self.subTest(condtions="observed streamflow statistics"): with self.subTest(conditions="observed streamflow statistics"):
cdt = numpy.array(["q_obs{>=median}"], dtype='|S32') cdt = numpy.array(["q_obs{>=median}"], dtype='|S32')
msk = _obs[0] >= numpy.median(_obs) msk = _obs[0] >= numpy.median(_obs)
......
...@@ -87,7 +87,7 @@ class TestMasking(unittest.TestCase): ...@@ -87,7 +87,7 @@ class TestMasking(unittest.TestCase):
) )
def test_conditions(self): def test_conditions(self):
with self.subTest(condtions="observed streamflow values"): with self.subTest(conditions="observed streamflow values"):
cdt = numpy.array([["q_obs{<2000,>3000}"]], dtype='|S32') cdt = numpy.array([["q_obs{<2000,>3000}"]], dtype='|S32')
msk = (_obs[0] < 2000) | (_obs[0] > 3000) msk = (_obs[0] < 2000) | (_obs[0] > 3000)
...@@ -100,7 +100,7 @@ class TestMasking(unittest.TestCase): ...@@ -100,7 +100,7 @@ class TestMasking(unittest.TestCase):
evalhyd.evalp(obs, prd, ["QS"])[0] evalhyd.evalp(obs, prd, ["QS"])[0]
) )
with self.subTest(condtions="predicted streamflow statistics"): with self.subTest(conditions="predicted streamflow statistics"):
cdt = numpy.array([["q_prd_median{<=quantile0.7}"]], dtype='|S32') cdt = numpy.array([["q_prd_median{<=quantile0.7}"]], dtype='|S32')
median = numpy.squeeze(numpy.median(_prd, 2)) median = numpy.squeeze(numpy.median(_prd, 2))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment