Skip to content

Commit 112e0fb

Browse files
committed
choose method allows choices as keyword or positional argument
1 parent 49b0593 commit 112e0fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,15 +808,15 @@ def astype(
808808
# 'base',
809809
# 'byteswap',
810810

811-
def choose(input, choices, out=None, mode="wrap"):
811+
def choose(self, /, choices, out=None, mode="wrap"):
812812
"""
813813
Construct an array from an index array and a set of arrays to choose from.
814814
815815
Refer to :obj:`dpnp.choose` for full documentation.
816816
817817
"""
818818

819-
return dpnp.choose(input, choices, out, mode)
819+
return dpnp.choose(self, choices, out, mode)
820820

821821
def clip(self, min=None, max=None, out=None, **kwargs):
822822
"""

0 commit comments

Comments
 (0)