comparison numerics/convert.py @ 31:a655306ee78d

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Tue, 04 Nov 2014 15:52:12 -0800
parents f865bc916593
children 27913386a8a3
comparison
equal deleted inserted replaced
30:75270e7a051b 31:a655306ee78d
2 2
3 """ 3 """
4 convert between types 4 convert between types
5 """ 5 """
6 6
7 import argparse
7 import sys 8 import sys
8 from .read import CSVParser 9 from .read import CSVParser
9 10
10 __all__ = ['cast', 'float_or_orig'] 11 __all__ = ['cast', 'float_or_orig']
11 12
22 return cast(float, *values) 23 return cast(float, *values)
23 24
24 def main(args=sys.argv[1:]): 25 def main(args=sys.argv[1:]):
25 """CLI""" 26 """CLI"""
26 27
28 # parse command line
29 parser = argparse.ArgumentParser(description="interpolate types from file")
30 parser.add_argument('file',
31 type=argparse.FileType('r'),
32 help="CSV file")
33 options = parser.parse_args(args)
34
27 if __name__ == '__main__': 35 if __name__ == '__main__':
28 main() 36 main()