97d63d99aed77c517de1559e147c7f4669a24357,skimage/restoration/tests/test_unwrap.py,,check_wrap_around,#Any#Any#,80

Before Change


    index_first = tuple([0] * ndim)
    index_last = tuple([-1 if n == axis else 0 for n in range(ndim)])
    // unwrap the image without wrap around
    with warnings.catch_warnings():
        // We do not want warnings about length 1 dimensions
        warnings.simplefilter("ignore")
        image_unwrap_no_wrap_around = unwrap_phase(image_wrapped, seed=0)
    print("endpoints without wrap_around:",
          image_unwrap_no_wrap_around[index_first],
          image_unwrap_no_wrap_around[index_last])

After Change


    index_last = tuple([-1 if n == axis else 0 for n in range(ndim)])
    // unwrap the image without wrap around
    // We do not want warnings about length 1 dimensions
    with expected_warnings([r"Image has a length 1 dimension|\A\Z"]):
        image_unwrap_no_wrap_around = unwrap_phase(image_wrapped, seed=0)
    print("endpoints without wrap_around:",
          image_unwrap_no_wrap_around[index_first],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: scikit-image/scikit-image
Commit Name: 97d63d99aed77c517de1559e147c7f4669a24357
Time: 2018-10-23
Author: mark.harfouche@gmail.com
File Name: skimage/restoration/tests/test_unwrap.py
Class Name:
Method Name: check_wrap_around


Project Name: scikit-image/scikit-image
Commit Name: 97d63d99aed77c517de1559e147c7f4669a24357
Time: 2018-10-23
Author: mark.harfouche@gmail.com
File Name: skimage/restoration/tests/test_unwrap.py
Class Name:
Method Name: assert_phase_almost_equal


Project Name: scikit-image/scikit-image
Commit Name: b7216a2dff12b344955e3d0797a8bae9eefd08a1
Time: 2016-07-17
Author: devel@sciunto.org
File Name: skimage/data/__init__.py
Class Name:
Method Name: horse


Project Name: scikit-image/scikit-image
Commit Name: 97d63d99aed77c517de1559e147c7f4669a24357
Time: 2018-10-23
Author: mark.harfouche@gmail.com
File Name: skimage/restoration/tests/test_unwrap.py
Class Name:
Method Name: check_wrap_around


Project Name: scikit-image/scikit-image
Commit Name: 97d63d99aed77c517de1559e147c7f4669a24357
Time: 2018-10-23
Author: mark.harfouche@gmail.com
File Name: skimage/util/tests/test_dtype.py
Class Name:
Method Name: test_clobber