Re: [Numpy-discussion] How to copy data from a C array to a numpy array efficiently?

2012-10-06 Thread Dag Sverre Seljebotn
On 10/07/2012 08:48 AM, Dag Sverre Seljebotn wrote: > On 10/07/2012 08:41 AM, Jianbao Tao wrote: >> Hi, >> >> I am developing a Python wrapper of the NASA CDF C library in Cython. I >> have got a working version of it now, but it is slower than the >> counterpart in IDL. For loading the same file,

Re: [Numpy-discussion] How to copy data from a C array to a numpy array efficiently?

2012-10-06 Thread Dag Sverre Seljebotn
On 10/07/2012 08:41 AM, Jianbao Tao wrote: > Hi, > > I am developing a Python wrapper of the NASA CDF C library in Cython. I > have got a working version of it now, but it is slower than the > counterpart in IDL. For loading the same file, mine takes about 400 ms, > whereas the IDL version takes ab

[Numpy-discussion] How to copy data from a C array to a numpy array efficiently?

2012-10-06 Thread Jianbao Tao
Hi, I am developing a Python wrapper of the NASA CDF C library in Cython. I have got a working version of it now, but it is slower than the counterpart in IDL. For loading the same file, mine takes about 400 ms, whereas the IDL version takes about 290 ms. The main overhead in my code is caused by

Re: [Numpy-discussion] dtype '|S0' not understood

2012-10-06 Thread David Warde-Farley
On Wed, Oct 3, 2012 at 1:58 PM, Will Lee wrote: > This seems to be a old problem but I've recently hit with this in a very > random way (I'm using numpy 1.6.1). There seems to be a ticket (1239) but > it seems the issue is unscheduled. Can somebody tell me if this is fixed? > > In particular, i

Re: [Numpy-discussion] set_printoptions precision and single floats

2012-10-06 Thread Warren Weckesser
On Sat, Oct 6, 2012 at 12:17 PM, Ralf Gommers wrote: > > > On Fri, Oct 5, 2012 at 5:17 PM, Dan Goodman wrote: > >> Hi, >> >> numpy.set_printoptions(precision=...) doesn't affect single floats, even >> if they are numpy floats rather than Python floats. Is this a bug or is >> there some reason for

Re: [Numpy-discussion] set_printoptions precision and single floats

2012-10-06 Thread Ralf Gommers
On Fri, Oct 5, 2012 at 5:17 PM, Dan Goodman wrote: > Hi, > > numpy.set_printoptions(precision=...) doesn't affect single floats, even > if they are numpy floats rather than Python floats. Is this a bug or is > there some reason for this behaviour? I ask because I have a class that > derives from

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-10-06 Thread Ralf Gommers
On Sun, Sep 23, 2012 at 10:20 PM, Nathaniel Smith wrote: > On Sat, Sep 22, 2012 at 1:18 PM, Ralf Gommers > wrote: > > On Fri, Sep 21, 2012 at 11:39 PM, Nathaniel Smith wrote: > >> So the question is, how do we get a .egg-info? For the specific case > >> Ralf ran into, I'm pretty sure the soluti

Re: [Numpy-discussion] numpy-1.6.2: python setup.py build bdist_rpm fails

2012-10-06 Thread Ralf Gommers
On Fri, Oct 5, 2012 at 10:45 PM, Ed Sexton wrote: > > Hello Numpy Group- > > I have a working installation of Numpy-1.6.2 on a RHEL 6.3 host, now I > have to create an RPM to push out to 600+ hosts. > > 1. I cannot get the RPM build command to work, error listed below. > > 2. Another issue, how

Re: [Numpy-discussion] numpy distutils log error with easy_install

2012-10-06 Thread Matthew Brett
Hi, On Thu, Oct 4, 2012 at 10:29 AM, Matthew Brett wrote: > Hi, > > On Thu, Oct 4, 2012 at 7:35 AM, Ralf Gommers wrote: >> >> >> On Thu, Oct 4, 2012 at 12:14 AM, Matthew Brett >> wrote: >>> >>> Hi, >>> >>> On Wed, Oct 3, 2012 at 10:51 PM, Ralf Gommers >>> wrote: >>> > >>> > >>> > On Wed, Oct 3