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

2010-02-16 Thread Nicola Creati
Neil Crighton wrote: > Francesc Alted 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]y_min) & >> (array[1]> CPU times: user 0.15 s, sys: 0.01 s, total: 0.16 s >> Wall time: 0

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 distributio

[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

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, wrote: > On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson > 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 despit

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 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. > > > s\sentuser>sentuser_20080716No

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\sentuser>sentuser_20080716NoiseStudy7.py C:\Python25\lib\site-packages\scipy\misc\__init__.

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

2010-02-16 Thread David Cournapeau
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... ? cheers, David ___ NumPy-Discussion mailing list NumP

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 proble

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

2010-02-16 Thread Neil Crighton
Francesc Alted 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]y_min) & > (array[1] CPU times: user 0.15 s, sys: 0.01 s, total: 0.16 s > Wall time: 0.16 s > Out[12]: array([False, Fals

[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] 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

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

2010-02-16 Thread Francesc Alted
A Tuesday 16 February 2010 13:42:37 Nicola Creati escrigué: > 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 p

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: build/temp.linux-x86_64-3.1/numpy

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 rela

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

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 09:58, Brecht Machiels 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 real and >>> imaginary par

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

[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 wa

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

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 02:07, 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 interpret it as though it

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

2010-02-16 Thread Robert Kern
On Tue, Feb 16, 2010 at 06:42, Nicola Creati 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 problem re

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 n

[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

[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] 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