# HG changeset patch # User Jeff Hammel # Date 1426439553 25200 # Node ID bad50c6bb2438cd67dcb3a2eb0708bc80d7a98e6 # Parent 19a5c2fb52bb8ed1b78e7e4e83bbbc9a45c374c5 notes to self diff -r 19a5c2fb52bb -r bad50c6bb243 numerics/manipulate.py --- 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:]):