From 570198d63b25b362487f41f0db774c194ca8b002 Mon Sep 17 00:00:00 2001 From: ilan-gold Date: Thu, 19 Sep 2024 16:32:45 +0200 Subject: [PATCH] (fix): remove case of `values` --- 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 295164cb8db..9b9239cc042 100644 --- a/xarray/core/variable.py +++ b/xarray/core/variable.py @@ -553,7 +553,7 @@ def values(self) -> np.ndarray: @values.setter def values(self, values): - self.data = np.asarray(values) + self.data = values def to_base_variable(self) -> Variable: """Return this variable as a base xarray.Variable"""