Skip to content

Commit

Permalink
tweak test for to_dataframe change
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Nov 29, 2024
1 parent 47e9432 commit 7843b2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_strip.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def test_empty(self):
ds.top()
ds.subset(time = 0)
ds.spatial_mean()
df1 = ds.to_dataframe()
df1 = ds.to_dataframe(drop_bnds = False)
ds.strip_variables()
assert 'ncks -C -v t_an,t_dd,t_gp,t_ma,t_mn,t_oa,t_sd,t_se' in ds.history[1]
df2 = ds.to_dataframe()
df2 = ds.to_dataframe(drop_bnds = False)
assert len([x for x in df1.columns if "bnds" in x]) > 0
assert len([x for x in df2.columns if "bnds" in x]) == 0

Expand All @@ -32,9 +32,9 @@ def test_empty(self):
ds.top()
ds.subset(time = 0)
ds.spatial_mean()
df1 = ds.to_dataframe()
df1 = ds.to_dataframe(drop_bnds = False)
ds.strip_variables("t_an")
df2 = ds.to_dataframe()
df2 = ds.to_dataframe(drop_bnds = False)
assert len([x for x in df1.columns if "bnds" in x]) > 0
assert len([x for x in df2.columns if "bnds" in x]) == 0
assert ds.variables == ["t_an"]
Expand Down

0 comments on commit 7843b2e

Please sign in to comment.