[Numpy-discussion] loadtxt error
frank wang
f.yw@hotmail....
Wed Sep 24 00:14:59 CDT 2008
My numpy version is 1.1.1. I just downloaded and installed. It is the same result. Also, when I use the list, I got similar error said list does not have the find command.
---> 14 fid=loadtxt(fname,comments='"',dtype='|S4',converters={cols:lambda s:int(s,16)},usecols=[cols]) 15 16 #fid=loadtxt('ww36_5adcoutputsin45mhznotuner-0dbm_mux_adc_ddc_rmR.csv',comments='"',dtype='string',usecols=(0,))
C:\Python25\lib\site-packages\numpy\lib\io.pyc in loadtxt(fname, dtype, comments, delimiter, converters, skiprows, usecols, unpack) 337 for i, conv in (user_converters or {}).iteritems(): 338 if usecols:--> 339 i = usecols.find(i) 340 converters[i] = conv 341
AttributeError: 'list' object has no attribute 'find'> c:\python25\lib\site-packages\numpy\lib\io.py(339)loadtxt() 338 if usecols:--> 339 i = usecols.find(i) 340 converters[i] = conv
Thanks
Frank> From: pgmdevlist@gmail.com> To: numpy-discussion@scipy.org> Date: Mon, 22 Sep 2008 20:10:11 -0400> Subject: Re: [Numpy-discussion] loadtxt error> > On Monday 22 September 2008 19:56:47 frank wang wrote:> > This error is caused that the usecols is a tuple and it does not have find> > command. I do not know how to fix this problem.> > Try to use a list instead of a tuple as a quick-fix.> Anyway, Frank, you should try to give us the version of numpy you're using. > Obviously, it's not the latest.> _______________________________________________> Numpy-discussion mailing list> Numpy-discussion@scipy.org> http://projects.scipy.org/mailman/listinfo/numpy-discussion
_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080923/4fa8371b/attachment.html
More information about the Numpy-discussion
mailing list