changeset 122:19f3d071bb73

output historgram
author Jeff Hammel <k0scist@gmail.com>
date Mon, 16 Mar 2015 12:02:56 -0700
parents e259aa9ee18f
children 067705f465e8
files numerics/histogram.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/histogram.py	Sun Mar 15 21:02:57 2015 -0700
+++ b/numerics/histogram.py	Mon Mar 16 12:02:56 2015 -0700
@@ -123,8 +123,12 @@
     for histogram in histograms:
         columns.append(histogram().values())
 
+    # transpose back to rows
+    rows = transpose(columns)
+
     # output
-    writer = None   # TODO
+    writer = CSVWriter(options.output)
+    writer.write(rows)
 
 if __name__ == '__main__':
     main()