Skip to content

Commit 316eb43

Browse files
committed
Add reset_index
1 parent e30a89f commit 316eb43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xarray/tests/test_state_machine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def add_dim_coord(self, var):
7474
# non-dim coord of same size; this allows renaming
7575
self.dataset[name + "_"] = var
7676

77+
@rule()
7778
@precondition(lambda self: len(self.dataset.dims) >= 1)
7879
def reset_index(self):
7980
dim = random.choice(tuple(self.dataset.dims))

0 commit comments

Comments
 (0)