Mercurial > hg > numerics
changeset 19:276beb743a59
stub
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 21 Sep 2014 20:13:17 -0700 |
parents | e3fc1f75241d |
children | 178dc9a94387 |
files | numerics/data.py numerics/plot.py numerics/read.py |
diffstat | 3 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/numerics/data.py Sun Sep 21 20:13:17 2014 -0700 @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- + +""" +data models +""" + +__all__ = ['Dataset'] +string = (str, unicode) + +class Dataset(object): + """ + rows of data + """
--- a/numerics/plot.py Sun Sep 21 11:31:37 2014 -0700 +++ b/numerics/plot.py Sun Sep 21 20:13:17 2014 -0700 @@ -15,7 +15,6 @@ # imports import argparse import os -import subprocess import sys # module globals
--- a/numerics/read.py Sun Sep 21 11:31:37 2014 -0700 +++ b/numerics/read.py Sun Sep 21 20:13:17 2014 -0700 @@ -13,9 +13,9 @@ # module globals __all__ = ['main', 'ReadParser'] -here = os.path.dirname(os.path.realpath(__file__)) string = (str, unicode) + def ensure_dir(directory): """ensure a directory exists""" if os.path.exists(directory): @@ -24,7 +24,10 @@ os.makedirs(directory) return directory + def read_csv(*fp): + """read a series of CSV files""" + retval = [] for f in fp: