From 0d4ca1f8ec4e193f154b4109e640610e7c9bd8bc Mon Sep 17 00:00:00 2001 From: Marco Braun Date: Thu, 23 Nov 2023 14:15:53 -0500 Subject: [PATCH] Test select_inds_for_avail_vars passes. --- tests/test_indicators.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/tests/test_indicators.py b/tests/test_indicators.py index 6b64e282..8678bd92 100644 --- a/tests/test_indicators.py +++ b/tests/test_indicators.py @@ -206,25 +206,3 @@ def test_select_inds_for_avail_vars(self): assert [i for _, i in inds_for_avail_vars.iter_indicators()] == [ indicators[0] ] - - # assert len(list(inds_for_avail_vars.iter_indicators())) == 1 - # assert [n for n, _ in inds_for_avail_vars.iter_indicators()] == ["tg_min"] - # assert [i for _, i in inds_for_avail_vars.iter_indicators()] == [indicators[0]] - - # inds_for_avail_vars = xs.indicators.select_inds_for_avail_vars(ds=ds, indicators=self.yaml_file) - # assert len(list(inds_for_avail_vars.iter_indicators())) == 2 - # assert (sorted([n for n, _ in inds_for_avail_vars.iter_indicators()]) == - # sorted(['tg_min', 'growing_degree_days'])) - - # indicators as module - - # assert len(list(inds_for_avail_vars.iter_indicators())) == 1 - # assert [n for n, _ in inds_for_avail_vars.iter_indicators()] == ["tg_min"] - # assert [i for _, i in inds_for_avail_vars.iter_indicators()] == [indicators[0]] - # - # # indicators as list of tuples - # inds_for_avail_vars = xs.indicators.select_inds_for_avail_vars( - # ds=ds, indicators=[(n, i) for n, i in module.iter_indicators()]) - # assert len(list(inds_for_avail_vars.iter_indicators())) == 1 - # assert [n for n, _ in inds_for_avail_vars.iter_indicators()] == ["tg_min"] - # assert [i for _, i in inds_for_avail_vars.iter_indicators()] == [indicators[0]]