837797c3c0ec654503a86d6d02c50612f5399922,plantcv/plantcv/hyperspectral/analyze_index.py,,analyze_index,#Any#Any#Any#Any#Any#Any#,15

Before Change


    if type(max_bin) is str and (max_bin.upper() == "AUTO"):
        maxval = round(np.nanmax(masked_array), 8)  // Auto bins will detect maxval to use for calculating labels/bins
    if type(min_bin) is str and (min_bin.upper() == "AUTO"):
        b = round(np.nanmin(masked_array), 8) // If bin_min is auto then overwrite starting value

    // Calculate histogram
    hist_val = [float(l[0]) for l in cv2.calcHist([masked_array.astype(np.float32)], [0], None, [bins], [b, maxval])]

After Change



    // Calculate observed min and max pixel values of the masked array
    observed_max = np.nanmax(masked_array)
    observed_min = np.nanmin(masked_array)

    // Auto calculate max_bin if set
    if type(max_bin) is str and (max_bin.upper() == "AUTO"):
        maxval = round(observed_max, 8)  // Auto bins will detect maxval to use for calculating labels/bins
    if type(min_bin) is str and (min_bin.upper() == "AUTO"):
        b = round(observed_min, 8) // If bin_min is auto then overwrite starting value

    // Print a warning if observed min/max outside user defined range
    if observed_max > maxval or observed_min < b:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: danforthcenter/plantcv
Commit Name: 837797c3c0ec654503a86d6d02c50612f5399922
Time: 2020-03-03
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/hyperspectral/analyze_index.py
Class Name:
Method Name: analyze_index


Project Name: pyannote/pyannote-audio
Commit Name: 304fb9ee4fb1adc49ecea7dc9aeaf2c40a5a77fe
Time: 2018-06-29
Author: bredin@limsi.fr
File Name: pyannote/audio/signal.py
Class Name: Binarize
Method Name: apply


Project Name: pyannote/pyannote-audio
Commit Name: 304fb9ee4fb1adc49ecea7dc9aeaf2c40a5a77fe
Time: 2018-06-29
Author: bredin@limsi.fr
File Name: pyannote/audio/signal.py
Class Name: Peak
Method Name: apply