Skip to content
forked from pydata/xarray

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Illviljan <14371165+Illviljan@users.noreply.github.com>
  • Loading branch information
dcherian and Illviljan authored Dec 19, 2024
1 parent 6c1dd95 commit 1b9845d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +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)
yield k, Variable(dims=(k,), data=v, attrs=self.coords[k].attrs, fastpath=True)
else:
raise TypeError(type(v))

Expand Down

0 comments on commit 1b9845d

Please sign in to comment.