Re: [Numpy-discussion] numpy.ctypeslib.ndpointer and the restype attribute

2009-03-24 Thread Jens Rantil
On Mon, 2009-03-23 at 15:40 +0100, Sturla Molden wrote: def fromaddress(address, nbytes, dtype=double): class Dummy(object): pass d = Dummy() d.__array_interface__ = { 'data' : (address, False), 'typestr' : numpy.uint8.str, 'descr' : numpy.uint8.descr,

[Numpy-discussion] savetxt for complex

2009-03-24 Thread Neal Becker
How does savetxt format a complex vector? How can I control it? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.ctypeslib.ndpointer and the restype attribute

2009-03-24 Thread Sturla Molden
Jens Rantil wrote: Thanks Sturla. However numpy.uint8 seem to be lacking attributes 'str' and 'descr'. I'm using installed Ubuntu package 1:1.1.1-1. Is it too old or is the code broken? Oops, my fault :) def fromaddress(address, nbytes, dtype=float): class Dummy(object): pass d =

[Numpy-discussion] manipulating lists

2009-03-24 Thread Nils Wagner
Hi all, How can I extract the numbers from the following list ['', '-1.878722E-08,', '3.835992E-11', '1.192970E-03,-5.080192E-06'] It is easy to extract liste[1] '-1.878722E-08,' liste[2] '3.835992E-11' but liste[3] '1.192970E-03,-5.080192E-06' How can I accomplish that ? Nils

Re: [Numpy-discussion] manipulating lists

2009-03-24 Thread josef . pktd
On Tue, Mar 24, 2009 at 10:14 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I extract the numbers from the following list ['', '-1.878722E-08,', '3.835992E-11', '1.192970E-03,-5.080192E-06'] It is easy to extract liste[1] '-1.878722E-08,' liste[2] '3.835992E-11'

[Numpy-discussion] SWIG and numpy.i

2009-03-24 Thread Kevin Françoisse
Hi everyone, I have been using NumPy for a couple of month now, as part of my research project at the university. But now, I have to use a big C library I wrote myself in a python project. So I choose to use SWIG for the interface between both my python script and my C library. To make things

Re: [Numpy-discussion] manipulating lists

2009-03-24 Thread Nils Wagner
On Tue, 24 Mar 2009 10:27:18 -0400 josef.p...@gmail.com wrote: On Tue, Mar 24, 2009 at 10:14 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I extract the numbers from the following list ['', '-1.878722E-08,', '3.835992E-11', '1.192970E-03,-5.080192E-06'] It is easy

Re: [Numpy-discussion] SWIG and numpy.i

2009-03-24 Thread Bill Spotz
Kevin, You need to declare vecSum() *after* you %include numpy.i and use the %apply directive. Based on what you have, I think you can just get rid of the extern double vecSum(...). I don't see what purpose it serves. As is, it is telling swig to wrap vecSum() before you have set up

[Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Darren Dale
Hello, I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine: == FAIL:

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Charles R Harris
2009/3/24 Darren Dale dsdal...@gmail.com Hello, I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine: == FAIL:

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Nils Wagner
On Tue, 24 Mar 2009 11:20:53 -0600 Charles R Harris charlesr.har...@gmail.com wrote: 2009/3/24 Darren Dale dsdal...@gmail.com Hello, I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine:

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Darren Dale
2009/3/24 Charles R Harris charlesr.har...@gmail.com 2009/3/24 Darren Dale dsdal...@gmail.com Hello, I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine:

[Numpy-discussion] Win32 MSI

2009-03-24 Thread F. David del Campo Hill
Dear Numpy Forum, I have found the Win64 (Windows x64) Numpy MSI installer in Sourceforge (numpy-1.3.0b1.win-amd64-py2.6.msi), but cannot find the Win32 (Windows i386) one. I have tried unpacking the Win32 EXE installer package (numpy-1.3.0b1-win32-superpack-python2.6.exe) to see if

[Numpy-discussion] Summer of Code: Proposal for Implementing date/time types in NumPy

2009-03-24 Thread Marty Fuhry
Hello, Sorry for any overlap, as I've been referred here from the scipi-dev mailing list. I was reading through the Summer of Code ideas and I'm terribly interested in date/time proposal (http://projects.scipy.org/numpy/browser/trunk/doc/neps/datetime-proposal3.rst). I would love to work on this

Re: [Numpy-discussion] Win32 MSI

2009-03-24 Thread David Cournapeau
On Wed, Mar 25, 2009 at 3:13 AM, F. David del Campo Hill delca...@stats.ox.ac.uk wrote: Dear Numpy Forum,        I have found the Win64 (Windows x64) Numpy MSI installer in Sourceforge (numpy-1.3.0b1.win-amd64-py2.6.msi), but cannot find the Win32 (Windows i386) one. I have tried unpacking

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Pauli Virtanen
Tue, 24 Mar 2009 13:15:21 -0400, Darren Dale wrote: I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine: == FAIL:

[Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Lewis E. Randerson
Hi, I am trying to setup a new compiler for numpy and my lack of python pattern matching syntax knowledge is bogging me down. Here is one of my non-working patterns. = version_pattern = r'Pathscale(TM) Compiler Suite: Version (? Pversion[^\s]*)'

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Pauli Virtanen
Tue, 24 Mar 2009 15:11:05 -0400, Lewis E. Randerson wrote: Hi, I am trying to setup a new compiler for numpy and my lack of python pattern matching syntax knowledge is bogging me down. Here is one of my non-working patterns. =

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Lewis E. Randerson
Puali, I was wondering why the there seemed to be two uses for parens in the string. I now have the braces in. The issue now I suspect is the stuff after (?Pversion. That is where I am really confused. Any opinions there. --Lew On Mar 24, 2009, at 3:32 PM, Pauli Virtanen wrote: Tue, 24

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Charles R Harris
On Tue, Mar 24, 2009 at 1:12 PM, Pauli Virtanen p...@iki.fi wrote: Tue, 24 Mar 2009 13:15:21 -0400, Darren Dale wrote: I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine:

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Pauli Virtanen
Tue, 24 Mar 2009 15:44:07 -0400, Lewis E. Randerson wrote: Puali, I was wondering why the there seemed to be two uses for parens in the string. I now have the braces in. The issue now I suspect is the stuff after (?Pversion. That is where I am really confused. This is probably best

Re: [Numpy-discussion] Defining version_pattern for fcompiler (pathscale)

2009-03-24 Thread Lewis E. Randerson
Puali, Thanks. Somehow google failed me when I was looking for a clear explanation. --Lew On Mar 24, 2009, at 3:55 PM, Pauli Virtanen wrote: Tue, 24 Mar 2009 15:44:07 -0400, Lewis E. Randerson wrote: Puali, I was wondering why the there seemed to be two uses for parens in the string. I

Re: [Numpy-discussion] more on that missing directory

2009-03-24 Thread Sul, Young L
Hi, The following is a list of files that have ^Ms in them. I did an svn checkout of the latest stuff today and ran grep -Ril ^M * in numpy and scipy scipy seems to have more embedded feeds than numpy. It also seems that whatever 'builds' the files to be compiled in scipy is the thing that is

[Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Dan Yamins
Hi all, I'm having a seg fault error from numpy.rec.fromarrays. I have a python list L = [Col1, Col2] where Col1 and Col2 are python lists of short strings (the max length of Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of Col1 and Col2 is about 11500. Then I attempt

[Numpy-discussion] [ANN] mlabwrap 1.0.1

2009-03-24 Thread Alexander Schmolck
Mlabwrap allows pythonistas to interface to Matlab(tm) in a very straightforward fashion: from mlabwrap import mlab mlab.eig([[0,1],[1,1]]) array([[-0.61803399], [ 1.61803399]]) More at http://mlabwrap.sourceforge.net. Mlabwrap 1.0.1 is just a maintenance release that

Re: [Numpy-discussion] Doc update for 1.3.0?

2009-03-24 Thread Pauli Virtanen
Sun, 22 Mar 2009 14:09:07 +0900, David Cournapeau wrote: [clip] You can backport as many docstring changes as possible, since there is little chance to break anything just from docstring. Merge to trunk is here: http://projects.scipy.org/numpy/changeset/6725 I'll backport it and some

[Numpy-discussion] trying to speed up the following....

2009-03-24 Thread Brennan Williams
I have an array (porvatt.yarray) of ni*nj*nk values. I want to create two further arrays. activeatt.yarray is of size ni*nj*nk and is a pointer array to an active cell number. If a cell is inactive then its activeatt.yarray value will be 0 ijkatt.yarray is of size nactive, the number of active

Re: [Numpy-discussion] trying to speed up the following....

2009-03-24 Thread Robert Kern
On Tue, Mar 24, 2009 at 18:29, Brennan Williams brennan.willi...@visualreservoir.com wrote: I have an array (porvatt.yarray) of ni*nj*nk values. I want to create two further arrays. activeatt.yarray is of size ni*nj*nk and is a pointer array to an active cell number. If a cell is inactive

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Charles R Harris
2009/3/24 Dan Yamins dyam...@gmail.com Hi all, I'm having a seg fault error from numpy.rec.fromarrays. I have a python list L = [Col1, Col2] where Col1 and Col2 are python lists of short strings (the max length of Col1 strings is 4 chars and max length of Col2 is 7 chars). The len of

Re: [Numpy-discussion] Seg fault from numpy.rec.fromarrays

2009-03-24 Thread Dan Yamins
Can someone explain why this might be happening, and how I can fix it (without having to use the pickling hack)? What architecture/operating system is this? Sorry, I should have included this information before. it's OS 10.5.6. the is a 64-bit intel core-2 duo, but the python is the

Re: [Numpy-discussion] trying to speed up the following....

2009-03-24 Thread Brennan Williams
Robert Kern wrote: On Tue, Mar 24, 2009 at 18:29, Brennan Williams brennan.willi...@visualreservoir.com wrote: I have an array (porvatt.yarray) of ni*nj*nk values. I want to create two further arrays. activeatt.yarray is of size ni*nj*nk and is a pointer array to an active cell number.

Re: [Numpy-discussion] trying to speed up the following....

2009-03-24 Thread Robert Kern
On Wed, Mar 25, 2009 at 00:09, Brennan Williams brennan.willi...@visualreservoir.com wrote: Robert Kern wrote: On Tue, Mar 24, 2009 at 18:29, Brennan Williams brennan.willi...@visualreservoir.com wrote: I have an array (porvatt.yarray) of ni*nj*nk values. I want to create two further arrays.