kenfar/DataGristle — Issue #13: gristle_scalar needs to handle bad data types
Author: kenfar
Created: 2012-01-09 04:29:42+00:00
State: open

$ gristle_scalar.py colors.csv -c 0 -t integer -a max
Traceback (most recent call last):
File "/usr/local/bin/gristle_scalar.py", line 5, in
pkg_resources.run_script('gristle==0.44', 'gristle_scalar.py')
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 467, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1200, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.6/dist-packages/gristle-0.44-py2.6.egg/EGG-INFO/scripts/gristle_scalar.py", line 244, in
sys.exit(main())
File "/usr/local/lib/python2.6/dist-packages/gristle-0.44-py2.6.egg/EGG-INFO/scripts/gristle_scalar.py", line 88, in main
opts.column_type)
File "/usr/local/lib/python2.6/dist-packages/gristle-0.44-py2.6.egg/EGG-INFO/scripts/gristle_scalar.py", line 125, in type_converter
return int(value)
ValueError: invalid literal for int() with base 10: 'blue '