def max(self, histogram, bins):
    max = 0
    for i, binval in enumerate(histogram):
      if binval > 0:
        max = bins[i] 

    return max
dataset/ETHPy150Open neurodata/ndstore/scripts/imghist16.py/ImgHist.max/original