Skip to content

Commit

Permalink
xarray fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Aug 7, 2024
1 parent 38b543d commit 3ad0818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ensembleperturbation/parsing/adcirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def subset_dataset(
elements = node_mapper[elements]
# update element table in dataset
ele_da = DataArray(data=elements, dims=['nele', 'nvertex'])
subset = subset.assign_coords({'element': ele_da})
subset = subset.drop('element').assign_coords({'element': ele_da})
try:
subset = subset.drop_sel(run='original')
except:
Expand Down

0 comments on commit 3ad0818

Please sign in to comment.