e153509116ca2de43fc2d5683b3935b0973aa1cb,scipy/spatial/tests/test_distance.py,,test_Xdist_deprecated_args,#,1540

Before Change


            if metric == "wminkowski":
                if "p" in kwargs or "w" in kwargs:
                    continue
                kwargs["w"] = 1.0 / X1.std(axis=0)

            if((arg == "V" and metric == "seuclidean") or
               (arg == "VI" and metric == "mahalanobis") or
               (arg == "w" and metric == "wminkowski")):

After Change


            log = w.record(DeprecationWarning)
            cdist(X1, X1, metric, 2., **kwargs)
            pdist(X1, metric, 2., **kwargs)
            assert_(len(log) >= 2)
            assert_(sum([warn_msg_args in str(warn.message) for warn in log]) == 2)

        for arg in ["p", "V", "VI", "w"]:
            kwargs = {arg:"foo"}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: e153509116ca2de43fc2d5683b3935b0973aa1cb
Time: 2017-07-27
Author: apbard@users.noreply.github.com
File Name: scipy/spatial/tests/test_distance.py
Class Name:
Method Name: test_Xdist_deprecated_args


Project Name: mariogeiger/se3cnn
Commit Name: 165efff251f4545db86e6df2c96ec2ba3e3fd4e3
Time: 2018-06-16
Author: geiger.mario@gmail.com
File Name: se3_cnn/SO3.py
Class Name:
Method Name: _test_irr_repr_are_representation


Project Name: mariogeiger/se3cnn
Commit Name: 165efff251f4545db86e6df2c96ec2ba3e3fd4e3
Time: 2018-06-16
Author: geiger.mario@gmail.com
File Name: se3_cnn/SO3.py
Class Name:
Method Name: _test_spherical_harmonics