Mercurial > hg > numerics
changeset 75:2337abc4ebfe
stubbing transposition
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 01 Mar 2015 08:23:18 -0800 |
parents | 630cde28928a |
children | 7faa0112ef9f |
files | numerics/histogram.py |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/numerics/histogram.py Sun Mar 01 07:53:23 2015 -0800 +++ b/numerics/histogram.py Sun Mar 01 08:23:18 2015 -0800 @@ -23,6 +23,7 @@ import os import sys import time +from .data import transpose from .read import CSVParser from collections import OrderedDict @@ -86,6 +87,13 @@ parser = HistogramParser() options = parser.parse_args(args) + # read data + data = parser.read() + if not data: + parser.error("No data given") + + # transpose to columns + columns = transpose(data) if __name__ == '__main__': main()