Commit a1ec648c authored by Viktor Reshniak's avatar Viktor Reshniak
Browse files

do not rebin with bin = 1

parent c00a2f5a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1758,6 +1758,7 @@ class PeakHistogram(object):
		edges  = self.edges
		if bins is not None:
			# counts in each bin
			if np.array(bins).ravel().max()>1:
				data = rebin_histogram(data, bins, mode=rebin_mode)
			# edges along each dimension in the rebinned histogram
			edges = [ edges[d][np.cumsum([0]+list(bins[d]))] for d in range(self.ndims) ]