d261800e75707e9a269343bf480113ddfb0cbf66,dipy/segment/tests/test_clustering.py,,test_cluster_map_centroid_comparison_with_int,#,421

Before Change


    for i in clusters1_indices:
        cluster1.add(i, features)

    cluster2 = clusters.add_cluster()
    for i in clusters2_indices:
        cluster2.add(i, features)

    cluster3 = clusters.add_cluster()

After Change


    clusters3_indices = [15]

    // Build a test ClusterMapCentroid
    centroid = np.zeros_like(features)
    cluster1 = ClusterCentroid(centroid.copy())
    for i in clusters1_indices:
        cluster1.assign(i, features)

    cluster2 = ClusterCentroid(centroid.copy())
    for i in clusters2_indices:
        cluster2.assign(i, features)

    cluster3 = ClusterCentroid(centroid.copy())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: nipy/dipy
Commit Name: d261800e75707e9a269343bf480113ddfb0cbf66
Time: 2015-01-22
Author: marc.cote.19@gmail.com
File Name: dipy/segment/tests/test_clustering.py
Class Name:
Method Name: test_cluster_map_centroid_comparison_with_int


Project Name: nipy/dipy
Commit Name: d261800e75707e9a269343bf480113ddfb0cbf66
Time: 2015-01-22
Author: marc.cote.19@gmail.com
File Name: dipy/segment/tests/test_clustering.py
Class Name:
Method Name: test_cluster_map_centroid_getitem


Project Name: nipy/dipy
Commit Name: d261800e75707e9a269343bf480113ddfb0cbf66
Time: 2015-01-22
Author: marc.cote.19@gmail.com
File Name: dipy/segment/tests/test_clustering.py
Class Name:
Method Name: test_cluster_map_centroid_iter