Skip to content

Commit

Permalink
Revert "Apply suggestions from code review"
Browse files Browse the repository at this point in the history
This reverts commit 1b9845d.
  • Loading branch information
dcherian committed Dec 19, 2024
1 parent 6f6dd0a commit e6ec62b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2925,12 +2925,7 @@ def _validate_interp_indexers(
elif is_scalar(v):
yield k, Variable((), v, attrs=self.coords[k].attrs)
elif isinstance(v, np.ndarray):
yield (
k,
Variable(
dims=(k,), data=v, attrs=self.coords[k].attrs, fastpath=True
),
)
yield k, Variable(dims=(k,), data=v, attrs=self.coords[k].attrs)
else:
raise TypeError(type(v))

Expand Down

0 comments on commit e6ec62b

Please sign in to comment.