f30789aaf1f49e25059bc39d45656435d99c0677,skimage/measure/tests/test_profile.py,,test_reduce_func_sum,#,124
Before Change
def test_reduce_func_sum():
prof = profile_line(pyth_image, (0, 1), (3, 1), linewidth=3, order=0,
reduce_func=np.sum)
expected_prof = np.array([0, 2.4, 3, 0.6])
assert_almost_equal(prof, expected_prof)
def test_reduce_func_mean_linewidth_1():
After Change
def test_reduce_func_sum():
prof = profile_line(pyth_image, (0, 1), (3, 1), linewidth=3, order=0,
reduce_func=np.sum, mode="reflect")
expected_prof = pyth_image[:4, :3].sum(1)
assert_almost_equal(prof, expected_prof)
def test_reduce_func_mean_linewidth_1():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: scikit-image/scikit-image
Commit Name: f30789aaf1f49e25059bc39d45656435d99c0677
Time: 2020-04-07
Author: rfezzani@gmail.com
File Name: skimage/measure/tests/test_profile.py
Class Name:
Method Name: test_reduce_func_sum
Project Name: scikit-image/scikit-image
Commit Name: f30789aaf1f49e25059bc39d45656435d99c0677
Time: 2020-04-07
Author: rfezzani@gmail.com
File Name: skimage/measure/tests/test_profile.py
Class Name:
Method Name: test_reduce_func_mean
Project Name: scikit-image/scikit-image
Commit Name: f30789aaf1f49e25059bc39d45656435d99c0677
Time: 2020-04-07
Author: rfezzani@gmail.com
File Name: skimage/measure/tests/test_profile.py
Class Name:
Method Name: test_reduce_func_max
Project Name: scikit-image/scikit-image
Commit Name: f30789aaf1f49e25059bc39d45656435d99c0677
Time: 2020-04-07
Author: rfezzani@gmail.com
File Name: skimage/measure/tests/test_profile.py
Class Name:
Method Name: test_reduce_func_sumofsqrt_linewidth_3