# HG changeset patch # User Jeff Hammel # Date 1425261086 28800 # Node ID ae8b90fed06f14e7ed460d33216123d56a342ddd # Parent 8ad844281bf8545bec3bdd0c11b3d0115fa0b162 bug fixes diff -r 8ad844281bf8 -r ae8b90fed06f numerics/generate.py --- a/numerics/generate.py Sun Mar 01 17:49:42 2015 -0800 +++ b/numerics/generate.py Sun Mar 01 17:51:26 2015 -0800 @@ -20,3 +20,4 @@ dx = (xmax - xmin)/float(n) retval = [xmin+dx*i for i in range(0,n)] retval.append(xmax) + return retval diff -r 8ad844281bf8 -r ae8b90fed06f numerics/histogram.py --- a/numerics/histogram.py Sun Mar 01 17:49:42 2015 -0800 +++ b/numerics/histogram.py Sun Mar 01 17:51:26 2015 -0800 @@ -113,7 +113,7 @@ if options.min is None: options.min = min([min(column) for column in columns]) if options.max is None: - options.min = max([max(column) for column in columns]) + options.max = max([max(column) for column in columns]) if not options.n_bins: # find number of bins, if not specified @@ -128,6 +128,7 @@ for column in columns: histogram = Histogram(bins) histogram.add(*column) + histograms.append(histogram) # output delimeters data = histograms[0].keys()