f30789aaf1f49e25059bc39d45656435d99c0677,skimage/measure/tests/test_profile.py,,test_reduce_func_sumofsqrt_linewidth_3,#,176
Before Change
def test_reduce_func_sumofsqrt_linewidth_3():
prof = profile_line(pyth_image, (1, 2), (4, 2), linewidth=3, order=0,
reduce_func=lambda x: np.sum(x**0.5))
expected_prof = np.array([2.89083412, 3.45787824, 2.11623746, 0.77459667])
assert_almost_equal(prof, expected_prof)
def test_bool_array_input():
After Change
return np.sum(x ** 0.5)
prof = profile_line(pyth_image, (1, 2), (4, 2), linewidth=3, order=0,
reduce_func=reduce_func, mode="constant")
expected_prof = np.apply_along_axis(reduce_func,
arr=pyth_image[1:5, 1:4], axis=1)
assert_almost_equal(prof, expected_prof)
def test_oob_coodinates():
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_sumofsqrt_linewidth_3
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_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_max