Skip to content

Commit

Permalink
Update xarray .drop to new .drop_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersson committed Jul 28, 2024
1 parent 531217a commit 12d051f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepsensor/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def predict(
elif isinstance(X_t, (xr.DataArray, xr.Dataset)):
# Remove time dimension if present
if "time" in X_t.coords:
X_t = X_t.isel(time=0).drop("time")
X_t = X_t.isel(time=0).drop_vars("time")

if mode == "off-grid" and append_indexes is not None:
# Check append_indexes are all same length as X_t
Expand Down

0 comments on commit 12d051f

Please sign in to comment.