Skip to content

Commit c3b50a2

Browse files
author
Vahid Tavanashad
committed
add an assert
1 parent 47ce700 commit c3b50a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpnp/dpnp_utils/dpnp_utils_pad.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ def dpnp_pad(array, pad_width, mode="constant", **kwargs):
771771
)
772772

773773
else: # mode == "wrap":
774+
assert mode == "wrap"
774775
for axis, (left_index, right_index) in zip(axes, pad_width):
775776
roi = _view_roi(padded, original_area_slice, axis)
776777
original_period = padded.shape[axis] - right_index - left_index

0 commit comments

Comments
 (0)