Skip to content

Commit a75e599

Browse files
authored
Clipping with both min and max values as None (#1670)
1 parent 334d6ca commit a75e599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ def clip(a, a_min, a_max, *, out=None, order="K", **kwargs):
491491

492492
if kwargs:
493493
raise NotImplementedError(f"kwargs={kwargs} is currently not supported")
494+
elif a_min is None and a_max is None:
495+
raise ValueError("One of max or min must be given")
494496

495497
if order is None:
496498
order = "K"

0 commit comments

Comments
 (0)