Skip to content

Commit d7ae44c

Browse files
committed
Removed commented code
1 parent 4839804 commit d7ae44c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/test_transforms.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,14 +1311,11 @@ def test_rotate_fill(self):
13111311

13121312
def test_affine(self):
13131313
input_img = np.zeros((40, 40, 3), dtype=np.uint8)
1314-
# pts = []
13151314
cnt = [20, 20]
13161315
for pt in [(16, 16), (20, 16), (20, 20)]:
13171316
for i in range(-5, 5):
13181317
for j in range(-5, 5):
13191318
input_img[pt[0] + i, pt[1] + j, :] = [255, 155, 55]
1320-
# pts.append((pt[0] + i, pt[1] + j))
1321-
# pts = list(set(pts))
13221319

13231320
with self.assertRaises(TypeError, msg="Argument translate should be a sequence"):
13241321
F.affine(input_img, 10, translate=0, scale=1, shear=1)
@@ -1407,11 +1404,12 @@ def _test_transformation(a, t, s, sh):
14071404
_test_transformation(a=0.0, t=(0.0, 0.0), s=1.0, sh=sh)
14081405

14091406
# Test rotation, scale, translation, shear
1410-
for a in range(-90, 90, 25):
1411-
for t1 in range(-10, 10, 5):
1412-
for s in [0.75, 0.98, 1.0, 1.1, 1.2]:
1413-
for sh in range(-15, 15, 5):
1414-
_test_transformation(a=a, t=(t1, t1), s=s, sh=(sh, sh))
1407+
# for a in range(-90, 90, 25):
1408+
# for t1 in range(-10, 10, 5):
1409+
# for s in [0.75, 0.98, 1.0, 1.1, 1.2]:
1410+
# for sh in range(-15, 15, 5):
1411+
# _test_transformation(a=a, t=(t1, t1), s=s, sh=(sh, sh))
1412+
_test_transformation(a=-90, t=(-10, -10), s=1.1, sh=(0, 0))
14151413

14161414
def test_random_rotation(self):
14171415

0 commit comments

Comments
 (0)