Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4280768
Created Dec 13, 2012

What would you like to do?
error received
>>> run
TypeError Traceback (most recent call last)
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/IPython/utils/ in execfile(fname, *where)
173 else:
174 filename = fname
--> 175 __builtin__.execfile(filename, *where)
/Users/slink/Dropbox/MIST/no_flow_testing/ in <module>()
13 data = np.genfromtxt(files[1], skip_header=22,\
14 names=col_headers,\
---> 15 converters={"Time": convertfunc})
16 #usecols=range(0,6),
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/lib/ in genfromtxt(fname, dtype, comments, delimiter, skiprows, skip_header, skip_footer, converters, missing, missing_values, filling_values, usecols, names, excludelist, deletechars, replace_space, autostrip, case_sensitive, defaultfmt, unpack, usemask, loose, invalid_raise)
1632 output = np.array(data, dtype=dtype)
1633 else:
-> 1634 rows = np.array(data, dtype=[('', _) for _ in dtype_flat])
1635 output = rows.view(dtype)
1636 # Now, process the rowmasks the same way
TypeError: float() argument must be a string or a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment