81f6a059662f2ff2f7c214f36cada3a7cb920da1,dipy/reconst/peaks.py,,peak_directions,#Any#Any#Any#Any#Any#,92

Before Change



    

    odf = np.clip(odf, 0, np.inf)
    values, indices = local_maxima(odf, sphere.edges)

    // If there is only one peak return
    if len(indices) == 1:

After Change


    // If there is only one peak return
    n = len(values)
    if n == 0 or (values[0] < 0.):
        return np.zeros((0, 3)), np.zeros(0), np.zeros(0, dtype=int)
    elif n == 1:
        return sphere.vertices[indices], values, indices

    odf_min = odf.min()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: 81f6a059662f2ff2f7c214f36cada3a7cb920da1
Time: 2013-12-10
Author: mrbago@gmail.com
File Name: dipy/reconst/peaks.py
Class Name:
Method Name: peak_directions


Project Name: scikit-image/scikit-image
Commit Name: 9795e24cb5b3b7ffed0ca959a0986b28366908a9
Time: 2017-09-12
Author: peter@goldsborough.me
File Name: skimage/data/generate_shapes.py
Class Name:
Method Name: generate_shapes


Project Name: yzhao062/pyod
Commit Name: ad5beccf2b74dc39314843e8a970a891cbd52267
Time: 2018-05-31
Author: yuezhao@cs.toronto.edu
File Name: pyod/models/base.py
Class Name: BaseDetector
Method Name: predict_proba