f30789aaf1f49e25059bc39d45656435d99c0677,skimage/measure/tests/test_profile.py,,test_reduce_func_mean,#,110

Before Change


def test_reduce_func_mean():
    prof = profile_line(pyth_image, (0, 1), (3, 1), linewidth=3, order=0,
                        reduce_func=np.mean)
    expected_prof = np.array([0, 0.8, 1, 0.2])
    assert_almost_equal(prof, expected_prof)


def test_reduce_func_max():

After Change


def test_reduce_func_mean():
    prof = profile_line(pyth_image, (0, 1), (3, 1), linewidth=3, order=0,
                        reduce_func=np.mean, mode="reflect")
    expected_prof = pyth_image[:4, :3].mean(1)
    assert_almost_equal(prof, expected_prof)


def test_reduce_func_max():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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_mean


Project Name: nilearn/nilearn
Commit Name: 6704c535b8c59ab3b9b98c0489a051654c1ee727
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/signals.py
Class Name:
Method Name: _standardize


Project Name: scikit-learn-contrib/DESlib
Commit Name: 85d5c30d2186d07857d1f0fb7c269eb08d2b7d79
Time: 2018-04-07
Author: rafaelmenelau@gmail.com
File Name: deslib/des/des_clustering.py
Class Name: DESClustering
Method Name: fit


Project Name: scikit-learn-contrib/DESlib
Commit Name: f0c15f219b0761b14329ddd416cda82fa4bae841
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/mcb.py
Class Name: MCB
Method Name: estimate_competence