4c2fbedd7315ee5e1e6e51dddebc01f7a020409f,scipy/ndimage/tests/test_ndimage.py,TestNdimage,test_extend07,#TestNdimage#,1247

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_extend08(self):
        "line extension 8"
        array = numpy.array([[1], [2], [3]])
        weights = numpy.array([[0], [0], [0], [0], [0], [0], [0],

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_extend08(self):
        "line extension 8"
        array = numpy.array([[1], [2], [3]])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 6

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_extend07


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_extend04


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_extend09


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


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_extend01


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_extend03


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_extend02