Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aulemahal committed Sep 28, 2023
1 parent c0df03c commit 99df3e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ def test_normal(self):
assert tab.columns.names == ["variable"]
assert tab.index.names == ["season", "time", "site"]
# Season order is chronological, rather than alphabetical
assert tab.xs("1993", level="time").xs(
"a", level="site"
).index.get_level_values("season") == ["JFM", "AMJ", "JAS", "OND"]
np.testing.assert_array_equal(
tab.xs("1993", level="time")
.xs("a", level="site")
.index.get_level_values("season"),
["JFM", "AMJ", "JAS", "OND"],
)

# Variable in the index, thus no coords
tab = xs.io.to_table(
Expand Down

0 comments on commit 99df3e2

Please sign in to comment.