From cbc02e3d3155cd1e178d62a3897889546152e9e8 Mon Sep 17 00:00:00 2001 From: Negin Sobhani Date: Fri, 23 Jun 2023 15:07:42 -0600 Subject: [PATCH] fixing rolling_window issue with cupy (#7938) --- xarray/core/variable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/variable.py b/xarray/core/variable.py index 83ccbc9a1cf..9271d0c4dbd 100644 --- a/xarray/core/variable.py +++ b/xarray/core/variable.py @@ -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,