Skip to content

Commit

Permalink
replaced .drop with .drop_vars (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Sep 5, 2024
1 parent 938988a commit 1d0ed3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfm_tools/interpolate_grid2bnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def interp_uds_to_plipoints(uds:xu.UgridDataset, gdf:geopandas.GeoDataFrame) ->
for varn in uds.variables:
if facedim not in uds.variables[varn].dims:
vars_without_facedim.append(varn)
uds_face = uds.drop(vars_without_facedim)
uds_face = uds.drop_vars(vars_without_facedim)

# interpolate to provided points
ds = uds_face.ugrid.sel_points(x=gdf.geometry.x, y=gdf.geometry.y)
Expand Down

0 comments on commit 1d0ed3d

Please sign in to comment.