Skip to content

Commit 311e90d

Browse files
committed
pinch and punch had unrequired strength param constraint, removed them
1 parent b2bbd84 commit 311e90d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

torqueo/transforms.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -580,12 +580,11 @@ class Pinch(WarpTransform):
580580
Parameters
581581
----------
582582
strength : float
583-
The strength of the pinch distortion effect. Must be between 0.0 and 1.0.
583+
The strength of the pinch distortion effect.
584584
"""
585585

586586
def __init__(self, strength=0.5):
587587
super().__init__()
588-
assert 0.0 <= abs(strength) <= 1.0
589588
self.strength = strength
590589

591590
def generate_warp_field(self, height, width):
@@ -635,7 +634,7 @@ class Punch(Pinch):
635634
Parameters
636635
----------
637636
strength : float
638-
The strength of the punch distortion effect. Must be between 0.0 and 1.0.
637+
The strength of the punch distortion effect.
639638
"""
640639

641640
def __init__(self, strength=0.5):

0 commit comments

Comments
 (0)