def __compute_histogram(self, image):
        # buckets must be same for all bands
        buckets = 128 if 'buckets' not in self.sensor.water_distributions[self.sensor.band_names[0]] else self.sensor.water_distributions[self.sensor.band_names[0]]['buckets']
        histogram = image.reduceRegion(ee.Reducer.histogram(buckets, None, None), self.domain.bounds, 30, None, None, True).getInfo()
        h = []
    
        for c in range(len(self.sensor.band_names)):
            ch = self.sensor.band_names[c]
            # ignore first bucket, too many... for UAVSAR in particular
            #histogram[ch]['bucketMin'] += histogram[ch]['bucketWidth']
            #histogram[ch]['histogram'] =  histogram[ch]['histogram'][1:]
            
            # normalize
            total = sum(histogram[ch]['histogram'])
            histogram[ch]['histogram'] = map(lambda x : total / x, histogram[ch]['histogram'])
            h.append((histogram[ch]['bucketMin'], histogram[ch]['bucketWidth'], histogram[ch]['histogram']))
        return h
dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/radar/histogram.py/RadarHistogram.__compute_histogram/swapped operands of `/`