Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 25, 2024
1 parent 042940b commit 26fb6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/namedarray/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def __setitem__(

if isinstance(key, NamedArray):
key = key._data
self._array.__setitem__(key, asarray(value)._data)
self._data.__setitem__(key, asarray(value)._data)

def __sub__(self, other: int | float | NamedArray, /):
from xarray.namedarray._array_api import asarray, subtract
Expand Down

0 comments on commit 26fb6cb

Please sign in to comment.