[Numpy-discussion] create dll from numpy code

2010-02-16 Thread markus . proeller
Hello, is there a possibility to create a dll from a numpy code? Markus___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] ndarray of complex-like data

2010-02-16 Thread Brecht Machiels
Hello, I have written a subclass of Python's complex type, which only adds a couple of properties that return values calculated from the real and imaginary parts (magnitude and angle, for example). Now I would like to store objects of this new type in an ndarray. As the new type doesn't store

[Numpy-discussion] Extract subset from an array

2010-02-16 Thread Nicola Creati
Hello, I need to extract a subset from a Nx3 array. Each row has x, y, and z coordinates. The subset is just a portion of the array in which the following condition realizes x_min x x_max and y_min y y_max The problem reduce to the extraction of points inside a rectangular box defined by

Re: [Numpy-discussion] ndarray of complex-like data

2010-02-16 Thread Travis Oliphant
On Feb 16, 2010, at 5:00 AM, Brecht Machiels wrote: Hello, I have written a subclass of Python's complex type, which only adds a couple of properties that return values calculated from the real and imaginary parts (magnitude and angle, for example). Now I would like to store objects of this

Re: [Numpy-discussion] Extract subset from an array

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 06:42, Nicola Creati ncre...@inogs.it wrote: Hello, I need to extract a subset from a Nx3 array. Each row has x, y, and z coordinates. The subset is just a portion of the array in which the following condition realizes x_min x x_max and y_min y y_max The

Re: [Numpy-discussion] create dll from numpy code

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 02:07, markus.proel...@ifm.com wrote: Hello, is there a possibility to create a dll from a numpy code? Not really, no. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to

[Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Wayne Watson
I normally use IDLE on Win, but recently needed to go to command prompt to see all error messages. When I did, I was greeted by a host of deprecation and Numpy messages before things got running. The program otherwise functioned OK, after I found the problem I was after. Are these messages a

Re: [Numpy-discussion] ndarray of complex-like data

2010-02-16 Thread Brecht Machiels
Travis Oliphant wrote: On Feb 16, 2010, at 5:00 AM, Brecht Machiels wrote: I have written a subclass of Python's complex type, which only adds a couple of properties that return values calculated from the real and imaginary parts (magnitude and angle, for example). Now I would like to store

Re: [Numpy-discussion] ndarray of complex-like data

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 09:58, Brecht Machiels brecht.machi...@esat.kuleuven.be wrote: Travis Oliphant wrote: On Feb 16, 2010, at 5:00 AM, Brecht Machiels wrote: I have written a subclass of Python's complex type, which only adds a couple of properties that return values calculated from the

Re: [Numpy-discussion] Python 3 porting

2010-02-16 Thread Bruce Southey
On 02/15/2010 10:55 AM, Pauli Virtanen wrote: ma, 2010-02-15 kello 10:18 -0600, Bruce Southey kirjoitti: [clip] Is there a correct way to get Python3.1 to find the relative path on Linux? I can change the import statement to work but I do not think that is viable. You need to use

Re: [Numpy-discussion] Python 3 porting

2010-02-16 Thread Xavier Gnata
New try new error: gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-3.1/numpy/core/src/multiarray/multiarraymodule_onefile.o -Lbuild/temp.linux-x86_64-3.1 -lnpymath -lm -o build/lib.linux-x86_64-3.1/numpy/core/multiarray.so /usr/bin/ld:

Re: [Numpy-discussion] Python 3 porting

2010-02-16 Thread Pauli Virtanen
ti, 2010-02-16 kello 12:11 -0600, Bruce Southey kirjoitti: [clip] I managed to get 2to3 (I think from Python 3.1) to crash and isolated it to the file numpy-work/numpy/lib/arrayterator.py So I might hitting this ' assertion error in 2to3' bug: http://bugs.python.org/issue7824 I try to get

[Numpy-discussion] ABI changes complete in trunk

2010-02-16 Thread Travis Oliphant
I've made the ABI changes I think are needed in the SVN trunk. Please feel free to speak up if you have concerns or problems (and if you want to change white-space, just do it...). If the release schedule needs to be delayed by several weeks in order to get Py3k support in NumPy 2.0,

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread David Cournapeau
Hi Wayne, Wayne Watson wrote: I normally use IDLE on Win, but recently needed to go to command prompt to see all error messages. When I did, I was greeted by a host of deprecation and Numpy messages before things got running. The program otherwise functioned OK, after I found the problem I

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Wayne Watson
Hi, I'm working on a 1800+ line program that uses tkinter. Here are the messages I started getting recently. (I finally figured out how to copy them.). The program goes merrily on its way despite them. s\sentusersentuser_20080716NoiseStudy7.py

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread josef . pktd
On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Hi, I'm working on a 1800+ line program that uses tkinter. Here are the messages I started getting recently. (I finally figured out how to copy them.). The program goes merrily on its way despite them.

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Scott Sinclair
On 17 February 2010 07:25, josef.p...@gmail.com wrote: On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Hi, I'm working on a 1800+ line program that uses tkinter. Here are the messages I started getting recently. (I finally figured out how to copy them.).

[Numpy-discussion] Antwort: Re: create dll from numpy code

2010-02-16 Thread markus . proeller
numpy-discussion-boun...@scipy.org schrieb am 17.02.2010 01:43:03: markus.proel...@ifm.com wrote: Hello, is there a possibility to create a dll from a numpy code? What do you want to create a dll for ? For distribution purpose, to hide your code, etc... ? To replace a Matlab

Re: [Numpy-discussion] Antwort: Re: create dll from numpy code

2010-02-16 Thread David Cournapeau
markus.proel...@ifm.com wrote: numpy-discussion-boun...@scipy.org schrieb am 17.02.2010 01:43:03: markus.proel...@ifm.com wrote: Hello, is there a possibility to create a dll from a numpy code? What do you want to create a dll for ? For distribution purpose, to hide

Re: [Numpy-discussion] Extract subset from an array

2010-02-16 Thread Nicola Creati
Neil Crighton wrote: Francesc Alted faltet at pytables.org writes: In [10]: array = np.random.random((3, 1000)) then the time drops significantly: In [11]: time (array[0]x_min) (array[0]x_max) (array[1]y_min) (array[1]y_max) CPU times: user 0.15 s, sys: 0.01 s, total: 0.16 s