Skip to content

Commit

Permalink
Test select_inds_for_avail_vars passes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vindelico committed Nov 23, 2023
1 parent d5fa354 commit 0d4ca1f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/test_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]

0 comments on commit 0d4ca1f

Please sign in to comment.