Skip to content

Commit

Permalink
Fix #862 (#863)
Browse files Browse the repository at this point in the history
The commit removes an unnecessary set of parentheses around isel, which
creates a tuple, causing an error later.
  • Loading branch information
kjnam authored Jul 22, 2024
1 parent 49fd637 commit 170e035
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions uxarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 170e035

Please sign in to comment.