d4c0d404adac1a135f1aa2114d156fb8b3395265,tests/test_special_orthogonal_group.py,TestSpecialOrthogonalGroupMethods,test_regularize,#TestSpecialOrthogonalGroupMethods#,210

Before Change



            if n == 3:
                point = self.elements[3]["with_angle_0"]
                self.assertTrue(gs.isclose(gs.linalg.norm(point), 0.))
                result = group.regularize(point)
                expected = point
                self.assertTrue(gs.allclose(result, expected), "! angle 0 !")

After Change


                self.assertAllClose(result, expected)

            else:
                angle = 0.345
                point = gs.array([[
                    [gs.cos(angle), -gs.sin(angle)],
                    [gs.sin(angle), gs.cos(angle)]]])
                result = group.regularize(point)
                expected = point
                self.assertAllClose(result, expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_regularize


Project Name: geomstats/geomstats
Commit Name: d4c0d404adac1a135f1aa2114d156fb8b3395265
Time: 2018-12-26
Author: ninamio78@gmail.com
File Name: tests/test_special_orthogonal_group.py
Class Name: TestSpecialOrthogonalGroupMethods
Method Name: test_compose_and_inverse


Project Name: scipy/scipy
Commit Name: 24986bcc156abd807770d0cde6f45d6f8df08968
Time: 2016-01-17
Author: nikolay.mayorov@zoho.com
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestCurveFit
Method Name: test_bounds_p0