Skip to content

Commit

Permalink
xarray can't index from lazy coordinates so we make sure to load them…
Browse files Browse the repository at this point in the history
… if lazy or leave them as object if not
  • Loading branch information
sebastienlanglois committed Jan 11, 2024
1 parent a3d64b4 commit 4277494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdatasets/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def hydrometric_request(dataset_name, variables, space, time, catalog, **kwargs)
)
)

ds = ds.where(ds[key].isin(value), drop=True)
ds = ds.where(ds[key].isin(value).load(), drop=True)
except:
# Add warning
pass
Expand Down

0 comments on commit 4277494

Please sign in to comment.