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 committed Jun 23, 2023
1 parent c158719 commit cbc02e3
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 cbc02e3

Please sign in to comment.