changeset 89:ae8b90fed06f

bug fixes
author Jeff Hammel <k0scist@gmail.com>
date Sun, 01 Mar 2015 17:51:26 -0800
parents 8ad844281bf8
children 6ca75832116d
files numerics/generate.py numerics/histogram.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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()