Skip to content

Commit

Permalink
fixing rolling_window issue with cupy (pydata#7938)
Browse files Browse the repository at this point in the history
  • Loading branch information
negin513 authored and dstansby committed Jun 28, 2023
1 parent 8132066 commit cf418f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,7 @@ def rolling_window(
pads[d] = (win - 1, 0)

padded = var.pad(pads, mode="constant", constant_values=fill_value)
axis = [self.get_axis_num(d) for d in dim]
axis = tuple(self.get_axis_num(d) for d in dim)
new_dims = self.dims + tuple(window_dim)
return Variable(
new_dims,
Expand Down

0 comments on commit cf418f0

Please sign in to comment.