Re: [Numpy-discussion] loadtxt error

2008-09-25 Thread Stéfan van der Walt
2008/9/24 frank wang <[EMAIL PROTECTED]>: > Thank you very much for all of you. I have downloaded the binary version > 1.2rc and it fixed the problem. > > My special thanks to the person who created the window binary version for > users who do not know or do not have the capacity to build the numpy

Re: [Numpy-discussion] loadtxt error

2008-09-24 Thread frank wang
Sep 2008 17:10:45 +0200> From: [EMAIL PROTECTED]> To: numpy-discussion@scipy.org> Subject: Re: [Numpy-discussion] loadtxt error> > 2008/9/24 Joshua Lippai <[EMAIL PROTECTED]>:> > And the version would be displayed on screen. Bear in mind that unlike> > the release, w

Re: [Numpy-discussion] loadtxt error

2008-09-24 Thread Stéfan van der Walt
2008/9/24 Joshua Lippai <[EMAIL PROTECTED]>: > And the version would be displayed on screen. Bear in mind that unlike > the release, which installs via an installer file you double click, > you will have to compile numpy from the downloaded source code > yourself. Detailed instructions for doing th

Re: [Numpy-discussion] loadtxt error

2008-09-24 Thread David Huard
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: > > -

Re: [Numpy-discussion] loadtxt error

2008-09-23 Thread Joshua Lippai
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: [EMAIL PROTEC

Re: [Numpy-discussion] loadtxt error

2008-09-23 Thread frank wang
e-packages\numpy\lib\io.py(339)loadtxt()338 if usecols:--> 339 i = usecols.find(i)340 converters[i] = conv Thanks Frank> From: [EMAIL PROTECTED]> To: numpy-discussion@scipy.org> Date: Mon, 22 Sep 2008 20:10:11 -0400> Subject: Re: [Numpy-discussion] lo

Re: [Numpy-discussion] loadtxt error

2008-09-23 Thread frank wang
My numpy version is numpy-1.1.1-win32-superpack-python2.5.exe. It is the newest release. By the way, in Python, how can I check numpy version? Thanks Frank Date: Tue, 23 Sep 2008 08:42:00 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Numpy-discussion] loadtxt error This bug has

Re: [Numpy-discussion] loadtxt error

2008-09-23 Thread David Huard
This bug has been fixed in the trunk a couple of weeks ago. Cheers, David On Mon, Sep 22, 2008 at 8:10 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > 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.

Re: [Numpy-discussion] loadtxt error

2008-09-22 Thread Pierre GM
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 y

Re: [Numpy-discussion] loadtxt error

2008-09-22 Thread frank wang
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. Thanks Frank From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 22 Sep 2008 15:27:13 -0600Subject: Re: [Numpy-discussion] loadtxt error Hi, Stefan, Thanks for your

Re: [Numpy-discussion] loadtxt error

2008-09-22 Thread frank wang
= conv This command is the same as yours. I do not know why it is working for you.> Date: Mon, 22 Sep 2008 22:13:18 +0200> From: [EMAIL PROTECTED]> To: numpy-discussion@scipy.org> Subject: Re: [Numpy-discussion] loadtxt error> > 2008/9/22 frank wang <[EMAIL PROTEC

Re: [Numpy-discussion] loadtxt error

2008-09-22 Thread Stéfan van der Walt
2008/9/22 frank wang <[EMAIL PROTECTED]>: > It will load an array has two columns. However, I only want to load one > column to save the memory. If I type > > fid=loadtxt('filename.csv',comments='"',dtype='|S4',converters={0:lambda > s:int(s,16)},usecols=(1,)) You are specifying a converter that w

[Numpy-discussion] loadtxt error

2008-09-22 Thread frank wang
Hi, All, I am struggling to make the loadtxt works. In my file, I have several colunms of data, say I have two. When I use the following command to load the data, fid=loadtxt('filename.csv',comments='"',dtype='|S4',converters={0:lambda s:int(s,16)}) It will load an array has two columns.