Mercurial > hg > numerics
changeset 108:bad50c6bb243
notes to self
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 15 Mar 2015 10:12:33 -0700 |
parents | 19a5c2fb52bb |
children | fae24f57dcb1 |
files | numerics/manipulate.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/numerics/manipulate.py Sun Mar 15 10:02:48 2015 -0700 +++ b/numerics/manipulate.py Sun Mar 15 10:12:33 2015 -0700 @@ -9,7 +9,7 @@ import argparse import os import sys -from .convert import cast_columns +from .convert import default_cast, cast_columns from .read import CSVParser # module globals @@ -20,12 +20,15 @@ class ManipulationParser(CSVParser): """CLI option parser for data manipulation""" + types = default_cast + def __init__(self, **kwargs): kwargs.setdefault('description', __doc__) CSVParser.__init__(self, **kwargs) self.options = None def typed_data(self): + """return parsed and casted data""" raise NotImplementedError('TODO') # -> record TODO items def main(args=sys.argv[1:]):