From dff4c5502ed4d75e4296ff33ac13c49cd69f543a Mon Sep 17 00:00:00 2001 From: Kijin Nam Date: Mon, 22 Jul 2024 11:05:37 -0700 Subject: [PATCH] Fix UXARRAY/uxarray#862 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(