Skip to content

Commit cbc02e3

Browse files
authored
fixing rolling_window issue with cupy (#7938)
1 parent c158719 commit cbc02e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/variable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,7 @@ def rolling_window(
24842484
pads[d] = (win - 1, 0)
24852485

24862486
padded = var.pad(pads, mode="constant", constant_values=fill_value)
2487-
axis = [self.get_axis_num(d) for d in dim]
2487+
axis = tuple(self.get_axis_num(d) for d in dim)
24882488
new_dims = self.dims + tuple(window_dim)
24892489
return Variable(
24902490
new_dims,

0 commit comments

Comments
 (0)