99acbc72c3ab0b6b254a824e284c3e4f01c4cde7,scipy/ndimage/tests/test_interpolation.py,TestNdimageInterpolation,test_boundary_spline_accuracy,#TestNdimageInterpolation#Any#Any#,61

Before Change


        expected = ndimage.map_coordinates(padded, [npad + x], order=order,
                                           mode=mode)

        if mode in ["reflect", "grid-mirror"] and order > 1:
            numpy.testing.assert_allclose(y, expected, rtol=1e-4, atol=1e-13)
        elif mode in ["grid-constant"] and order > 1:
            numpy.testing.assert_allclose(y, expected, rtol=1e-5, atol=1e-7)
        else:
            numpy.testing.assert_allclose(y, expected, rtol=1e-6, atol=1e-13)

    @pytest.mark.parametrize("order", range(2, 6))
    @pytest.mark.parametrize("dtype", types)
    def test_spline01(self, dtype, order):
        data = numpy.ones([], dtype)

After Change


    @pytest.mark.parametrize("order", range(6))
    def test_boundary_spline_accuracy(self, mode, order):
        Tests based on examples from gh-2640
        data = numpy.arange(-6, 7, dtype=float)
        x = numpy.linspace(-8, 15, num=1000)
        y = ndimage.map_coordinates(data, [x], order=order, mode=mode)

        // compute expected value using explicit padding via numpy.pad
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: 99acbc72c3ab0b6b254a824e284c3e4f01c4cde7
Time: 2020-11-10
Author: grlee77@gmail.com
File Name: scipy/ndimage/tests/test_interpolation.py
Class Name: TestNdimageInterpolation
Method Name: test_boundary_spline_accuracy


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: aleju/imgaug
Commit Name: 24667336d2a7926927fd8d5daf1e7510baf74f06
Time: 2020-01-11
Author: kontakt@ajung.name
File Name: test/augmenters/test_blend.py
Class Name: _DummyMaskParameter
Method Name: _draw_samples