eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b,cellprofiler/cpmath/otsu.py,,otsu3,#Any#Any#Any#Any#,142

Before Change


    
    assert min_threshold==None or min_threshold >=0
    assert min_threshold==None or min_threshold <=1
    assert max_threshold==None or max_threshold >=0
    assert max_threshold==None or max_threshold <=1
    assert min_threshold==None or max_threshold==None or min_threshold < max_threshold
    
    //

After Change


    //
    // Compute the running variance and reverse running variance.
    // 
    data = np.atleast_1d(data)
    data = data[~ np.isnan(data)]
    data.sort()
    if len(data) == 0:
        return 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu3


Project Name: CellProfiler/CellProfiler
Commit Name: eef9f43e184a76cbb77dcdf7ae4b2413e9246e1b
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu


Project Name: CellProfiler/CellProfiler
Commit Name: 326849c2add357d2dd94b16ceeea7c6a38b9d6b5
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu


Project Name: CellProfiler/CellProfiler
Commit Name: 326849c2add357d2dd94b16ceeea7c6a38b9d6b5
Time: 2013-05-03
Author: leek@broadinstitute.org
File Name: cellprofiler/cpmath/otsu.py
Class Name:
Method Name: otsu3