Skip to content

Commit

Permalink
Update _indexing_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 25, 2024
1 parent 3cee797 commit 45abdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/namedarray/_array_api/_indexing_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def take(
axis: int | None = None,
) -> NamedArray:
xp = _get_data_namespace(x)
_axis = _dims_to_axis(x, dim, axis)
_axis = _dims_to_axis(x, dim, axis)[0]
# TODO: Handle attrs? will get x1 now
out = x._new(data=xp.take(x._data, indices._data, axis=_axis))
return out

0 comments on commit 45abdfd

Please sign in to comment.