Re: [Numpy-discussion] load from text files Pull Request Review

2011-09-08 Thread Chris.Barker
On 9/8/11 1:43 PM, Christopher Jordan-Squire wrote: > I just ran a quick test on my machine of this idea. With > > dt = np.dtype([('x',np.float32),('y', np.int32),('z', np.float64)]) > temp = np.empty((), dtype=dt) > temp2 = np.zeros(1,dtype=dt) > > In [96]: def f(): > ...: l=[0]*3 >

Re: [Numpy-discussion] load from text files Pull Request Review

2011-09-08 Thread Christopher Jordan-Squire
On Wed, Sep 7, 2011 at 2:52 PM, Chris.Barker wrote: > On 9/2/11 2:45 PM, Christopher Jordan-Squire wrote: >> It doesn't have to parse the entire file to determine the dtypes. It >> builds up a regular expression for what it expects to see, in terms of >> dtypes. Then it just loops over the lines,

Re: [Numpy-discussion] strange test failure in Cython code with numpy master

2011-09-08 Thread Mark Wiebe
Probably has something to do with 'arr' having a statically defined type of cnp.ndarray. -Mark On Thu, Sep 8, 2011 at 12:59 PM, Ralf Gommers wrote: > Hi, > > There's a test failure in scipy/io/matlab/mio_utils that shows up with > numpy master but not 1.5.1, see > http://projects.scipy.org/scipy

[Numpy-discussion] strange test failure in Cython code with numpy master

2011-09-08 Thread Ralf Gommers
Hi, There's a test failure in scipy/io/matlab/mio_utils that shows up with numpy master but not 1.5.1, see http://projects.scipy.org/scipy/ticket/1512 I have a fix here: https://github.com/rgommers/scipy/commit/4ade7829649b9e2c251f5f7f370781b16fc13612, but I don't really understand why the code is

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-08 Thread V. Armando Solé
On 08/09/2011 16:16, Jim Vickroy wrote: > On 9/8/2011 6:09 AM, "V. Armando Solé" wrote: >> Have you tried to install Visual Studio 2008 Express edition (plus the >> windows SDK to be able to compile 64 bit code)? >> >> Armando > Armando, "Visual Studio 2008 Professional" is installed on the compute

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-08 Thread Jim Vickroy
On 9/8/2011 6:09 AM, "V. Armando Solé" wrote: > Have you tried to install Visual Studio 2008 Express edition (plus the > windows SDK to be able to compile 64 bit code)? > > Armando Armando, "Visual Studio 2008 Professional" is installed on the computer as well as "Intel Visual Fortran Composer XE

Re: [Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-08 Thread V. Armando Solé
Have you tried to install Visual Studio 2008 Express edition (plus the windows SDK to be able to compile 64 bit code)? Armando On 08/09/2011 13:56, Jim Vickroy wrote: > Hello All, I'm attempting to create a python wrapper, for a Fortran > subroutine, using f2py. > > My system details are: > >

[Numpy-discussion] f2py : NotImplementedError: Only MS compiler supported with gfortran on win64

2011-09-08 Thread Jim Vickroy
Hello All, I'm attempting to create a python wrapper, for a Fortran subroutine, using f2py. My system details are: >>> sys.version '2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]' >>> sys.getwindowsversion() (5, 1, 2600, 2, 'Service Pack 3') >>> scipy.__version__ '0.7.

Re: [Numpy-discussion] what to use in buildbot config for numpy testing

2011-09-08 Thread Jean-Baptiste Marquette
There is much more simple: the command nosetests numpy Of course, nosetests needs to be installed... Cheers JB Le 7 sept. 2011 à 23:44, Chris Kees a écrit : > Hi Derek, > > Thanks! I forgot that python would exit with 0 even if numpy.test() > fails. That could have taken a while to realize. >

Re: [Numpy-discussion] load from text files Pull Request Review

2011-09-08 Thread Pauli Virtanen
Wed, 07 Sep 2011 12:52:44 -0700, Chris.Barker wrote: [clip] > In [9]: temp['x'] = 3 > > In [10]: temp['y'] = 4 > > In [11]: temp['z'] = 5 [clip] > maybe it wouldn't be any faster, but with re-using temp, and one less > list-tuple conversion, and fewer python type to numpy type conversions, > mayb