3940494bc2aea08e19ac40b58e7f8dd52be257bd,test/augmenters/test_geometric.py,TestRot90,test_keypoints_k_is_1_and_5,#TestRot90#,6968

Before Change


                kpsoi_aug = aug.augment_keypoints([self.kpsoi])[0]

                assert kpsoi_aug.shape == (8, 4, 3)
                expected_k1_kps = self.kpsoi_k1.to_xy_array()
                for kp_aug, kp in zip(kpsoi_aug.keypoints, expected_k1_kps):
                    assert np.allclose([kp_aug.x, kp_aug.y], [kp[0], kp[1]])

    def test_polygons_k_is_1_and_5(self):
        for k in [1, 5]:
            with self.subTest(k=k):
                aug = iaa.Rot90(k, keep_size=False)

After Change



                kpsoi_aug = aug.augment_keypoints([self.kpsoi])[0]

                assert_cbaois_equal(kpsoi_aug, self.kpsoi_k1)

    def test_polygons_k_is_1_and_5(self):
        for k in [1, 5]:
            with self.subTest(k=k):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: aleju/imgaug
Commit Name: 3940494bc2aea08e19ac40b58e7f8dd52be257bd
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_geometric.py
Class Name: TestRot90
Method Name: test_keypoints_k_is_1_and_5


Project Name: aleju/imgaug
Commit Name: 3940494bc2aea08e19ac40b58e7f8dd52be257bd
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_geometric.py
Class Name: TestRot90
Method Name: test_keypoints_k_is_3_and_minus1


Project Name: aleju/imgaug
Commit Name: 3940494bc2aea08e19ac40b58e7f8dd52be257bd
Time: 2019-09-29
Author: kontakt@ajung.name
File Name: test/augmenters/test_geometric.py
Class Name: TestRot90
Method Name: test_keypoints_k_is_2