From 170e0359b0015c39a5983c24c26255ec99536f91 Mon Sep 17 00:00:00 2001 From: Kijin Nam Date: Mon, 22 Jul 2024 14:58:29 -0700 Subject: [PATCH] Fix UXARRAY/uxarray#862 (#863) The commit removes an unnecessary set of parentheses around isel, which creates a tuple, causing an error later. --- uxarray/core/dataarray.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/uxarray/core/dataarray.py b/uxarray/core/dataarray.py index 4cd39ccd4..f83f39e1a 100644 --- a/uxarray/core/dataarray.py +++ b/uxarray/core/dataarray.py @@ -1073,11 +1073,9 @@ def _slice_from_grid(self, sliced_grid): ).values elif self._node_centered(): - d_var = ( - self.isel( - n_node=sliced_grid._ds["subgrid_node_indices"], ignore_grid=True - ).values, - ) + d_var = self.isel( + n_node=sliced_grid._ds["subgrid_node_indices"], ignore_grid=True + ).values else: raise ValueError(