Skip to content

Commit

Permalink
Remove drop_encoding for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Jul 16, 2024
1 parent dd4d7a0 commit 6400183
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xarray_subset_grid/grids/ugrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ def subset_polygon(

# Subset using xarrays select indexing, and overwrite the face_node_connectivity
# and face_face_connectivity (if available) with the new indices
<<<<<<< HEAD
ds_subset = ds.sel({"node": selected_nodes, face_dimension: selected_elements})
=======
ds_subset = ds.sel(node=selected_nodes, nele=selected_elements)
>>>>>>> fa4edbf (Remove drop_encoding for now)
ds_subset[mesh.face_node_connectivity][:] = face_node_new
if has_face_face_connectivity:
ds_subset[mesh.face_face_connectivity][:] = face_face_new
Expand Down

0 comments on commit 6400183

Please sign in to comment.