4c2fbedd7315ee5e1e6e51dddebc01f7a020409f,scipy/ndimage/tests/test_ndimage.py,TestNdimage,test_extend10,#TestNdimage#,1287

Before Change


        for mode, true_value in zip(self.modes, true_values):
            output = ndimage.correlate(array, weights,
                                                 mode = mode, cval = 0)
            self.failUnless(diff(output, true_value) < eps)

    def test_boundaries(self):
        "boundary modes"
        def shift(x):
            return (x[0] + 0.1,)

After Change


        true_values = [[[3], [3], [3]],
                       [[2], [3], [1]],
                       [[2], [1], [1]],
                       [[1], [2], [3]],
                       [[0], [0], [0]]]
        for mode, true_value in zip(self.modes, true_values):
            output = ndimage.correlate(array, weights,
                                       mode = mode, cval = 0)
            assert_array_equal(output, true_value)

    def test_boundaries(self):
        "boundary modes"
        def shift(x):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: 4c2fbedd7315ee5e1e6e51dddebc01f7a020409f
Time: 2007-10-09
Author: stefan@sun.ac.za
File Name: scipy/ndimage/tests/test_ndimage.py
Class Name: TestNdimage
Method Name: test_extend10


Project Name: scipy/scipy
Commit Name: 4c2fbedd7315ee5e1e6e51dddebc01f7a020409f
Time: 2007-10-09
Author: stefan@sun.ac.za
File Name: scipy/ndimage/tests/test_ndimage.py
Class Name: TestNdimage
Method Name: test_extend05


Project Name: scipy/scipy
Commit Name: 4c2fbedd7315ee5e1e6e51dddebc01f7a020409f
Time: 2007-10-09
Author: stefan@sun.ac.za
File Name: scipy/ndimage/tests/test_ndimage.py
Class Name: TestNdimage
Method Name: test_extend08


Project Name: scipy/scipy
Commit Name: 4c2fbedd7315ee5e1e6e51dddebc01f7a020409f
Time: 2007-10-09
Author: stefan@sun.ac.za
File Name: scipy/ndimage/tests/test_ndimage.py
Class Name: TestNdimage
Method Name: test_extend06