Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 12:52 AM, Dag Sverre Seljebotn [EMAIL PROTECTED] wrote: I am going to apply for a Google Summer of Code project about Developing Cython towards better NumPy integration (Cython: http://cython.org). Anyone interested in how this is done can have a look at the

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 12:52 AM, Dag Sverre Seljebotn [EMAIL PROTECTED] wrote: I am going to apply for a Google Summer of Code project about Developing Cython towards better NumPy integration (Cython: http://cython.org). Anyone interested in how this is done can have a look at the

Re: [Numpy-discussion] Applying PIL patch

2008-04-01 Thread izak marais
Thank you for the reply. I in fact did not have the latest PIL binary. It works beautifully now. Luckily I won't be needing RGBA support soon. Izak - Original Message From: Stéfan van der Walt [EMAIL PROTECTED] To: Discussion of Numerical Python numpy-discussion@scipy.org Sent: Monday,

Re: [Numpy-discussion] Applying PIL patch

2008-04-01 Thread izak marais
Stéfan wrote:Unfortunately, RGBA images cannot be read this way. Apparently it does not work with 16bit greyscale tif images either. For anyone else stumbling upon this thread, there is a work-about to get the data into a numpy array. i = Image.open('16bitGreyscaleImage.tif') a =

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: http://wiki.cython.org/enhancements/numpy One more comment about the constructor described on the page above. I read this a different way now, if what you meant is the parameters to ndarray in cdef

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
http://wiki.cython.org/enhancements/numpy One more comment about the constructor described on the page above. It would be good if we could have the same syntax as the current numpy.ndarray, and then simply call through to the underlying C constructor. We'd also need

Re: [Numpy-discussion] planet.scipy.org

2008-04-01 Thread Matthieu Brucher
Hi, The planet is no longer accessible. Anyone has the same issue ? Matthieu 2008/1/1, Jarrod Millman [EMAIL PROTECTED]: Hey, I just wanted to announce that we now have a NumPy/SciPy blog aggregator thanks to Gaël Varoquaux: http://planet.scipy.org/ Feel free to contact me if you have a

[Numpy-discussion] server down

2008-04-01 Thread Christopher Hanley
Hi, I cannot access the numpy, scipy, or astropy repositories at scipy.org. The servers appear to be down. [redcedar:~/dev/scipy] chanley% svn update svn: PROPFIND request failed on '/svn/scipy/trunk' svn: PROPFIND of '/svn/scipy/trunk': could not connect to server (http://svn.scipy.org)

Re: [Numpy-discussion] planet.scipy.org

2008-04-01 Thread Gael Varoquaux
On Tue, Apr 01, 2008 at 02:29:13PM +0200, Matthieu Brucher wrote: The planet is no longer accessible. Anyone has the same issue ? Yes, the scipy.org server is down. I think we need to wait for the US to wake up to take care of this. Ga�l ___

Re: [Numpy-discussion] planet.scipy.org

2008-04-01 Thread Travis Vaught
Fixed now...many apologies for the outage. Travis On Apr 1, 2008, at 8:19 AM, Gael Varoquaux wrote: On Tue, Apr 01, 2008 at 02:29:13PM +0200, Matthieu Brucher wrote: The planet is no longer accessible. Anyone has the same issue ? Yes, the scipy.org server is down. I think we need to wait

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
Hi Pierre, Im ccing Bob on this, he's the main developper for cdms2 package. At this point I think Travis original suggestion was the best. We should leave it like it was for 1.0.5 There's a lot of changes to do in order to get the backward compatibility going. And I feel it should wait until

[Numpy-discussion] confusion in eigenlib code

2008-04-01 Thread gordon
hi i came across some code for eigenface construction from some images ,using the old Numeric . http://www.owlnet.rice.edu/~elec301/Projects99/faces/code.html In the eigenlib.py http://www.owlnet.rice.edu/~elec301/Projects99/faces/code/eigenlib.py i converted the calls to Numeric functions to

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Amit Itagi
On Mon, Mar 31, 2008 at 11:06 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi [EMAIL PROTECTED] wrote: Hi, I am having problems with numpy installation. 1) These is an atlas 3.8.0 library installed somewhere in the search path. However, the

Re: [Numpy-discussion] linalg.eigh() newbie doubt

2008-04-01 Thread Matthieu Brucher
but the notation evectors[:3] will give me an ndarray of shape(3,6) Am i missing something here? Yes : evectors[:3] selects the first three lines, evectors[:,3] selects the fourth column. Matthieu -- French PhD student Website : http://matthieu-brucher.developpez.com/ Blogs :

Re: [Numpy-discussion] linalg.eigh() newbie doubt

2008-04-01 Thread gordon
Yes : evectors[:3] selects the first three lines, evectors[:,3] selects the fourth column. arggg!! my mistake! sorry Lorenzo thanks Matthieu gordon ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] linalg.eigh() newbie doubt

2008-04-01 Thread gordon
The normalized eigenvector corresponding to the eigenvalue w[i] is the column v[:,i]. so, yes, the eigvec coresponding to the eigval w[i] is v[:,i]. Lorenzo sorry i don't understand from the above sample(unordered) if i select the the 4th eigenvalue i get 1.7 evals[3]=1.7 i believe the

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Travis E. Oliphant
Charles Doutriaux wrote: Hi Pierre, Im ccing Bob on this, he's the main developper for cdms2 package. I've uploaded the original ma.py file back into oldnumeric so that oldnumeric.ma should continue to work as before. Can you verify this? Thanks, -Travis O.

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Pierre GM
All, Because numpy.ma.MaskedArray objects are now derived from classical ndarrays, the subclassing rules should be followed. As we observed yesterday with Charles, the adaptation is not as straightforward as we hoped. If you have time constraints, the easiest would indeed be to revert to the

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
Hi Travis, I get this: import numpy, numpy.oldnumeric.ma as MA, numpy.oldnumeric as Numeric, PropertiedClasses File /lgm/cdat/latest/lib/python2.5/site-packages/numpy/oldnumeric/ma.py, line 2204, in module array.mean = _m(average) NameError: name 'average' is not defined C. Travis

[Numpy-discussion] output arguments for dot(), tensordot()

2008-04-01 Thread Andreas Klöckner
Hi all, is there a particular reason why dot() and tensordot() don't have output arguments? Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread David Cournapeau
On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - Don't search for the library. Assume that it is absent and use the default slower

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path to my python directory is /home/amit/packages/Python-2.5.2 . If I temporarily make the atlas library unavailable (by renaming the directory to

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Travis E. Oliphant
Charles Doutriaux wrote: Hi Travis, I get this: import numpy, numpy.oldnumeric.ma as MA, numpy.oldnumeric as Numeric, PropertiedClasses File /lgm/cdat/latest/lib/python2.5/site-packages/numpy/oldnumeric/ma.py, line 2204, in module array.mean = _m(average) NameError: name

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 11:06 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 4:17 PM, Amit Itagi [EMAIL PROTECTED] wrote: Hi, I am having problems with numpy installation. 1) These is an

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Charles Doutriaux
Hi Travis, Ok we're almost there, in my test suite i get: maresult = numpy.core.ma.take(ta, indices, axis=axis) AttributeError: 'module' object has no attribute 'ma' data = numpy.core.ma.take(ax[:], indices) AttributeError: 'module' object has no attribute 'ma' I don't know if it was

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Amit Itagi
On Tue, Apr 1, 2008 at 12:43 PM, David Cournapeau [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - Don't

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Amit Itagi
On Tue, Apr 1, 2008 at 12:43 PM, David Cournapeau [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 8:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I figured how to specify a particular installation of the libraries. I want to do the opposite. How do I specify the following in site.cfg - Don't

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 1:31 PM, Amit Itagi [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 1:21 PM, Robert Kern [EMAIL PROTECTED] wrote: On Tue, Apr 1, 2008 at 10:16 AM, Amit Itagi [EMAIL PROTECTED] wrote: I am installing this on a CENTOS linux platform (64 bit AMD opteron). The path

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Stéfan van der Walt
Hi Dag On Tue, Apr 1, 2008 at 11:06 AM, Dag Sverre Seljebotn [EMAIL PROTECTED] wrote: One more comment about the constructor described on the page above. It would be good if we could have the same syntax as the current numpy.ndarray, and then simply call through to the underlying C

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Dag Sverre Seljebotn
I can foresee certain situations under which we can predict the type of the result of operations like this one. Would it be possible to then handle 'y' as an ndarray as well, instead of reverting to Python object calls? Indeed - plans are underway to add automatic type inference to

Re: [Numpy-discussion] Project for Cython integration with NumPy

2008-04-01 Thread Gael Varoquaux
On Tue, Apr 01, 2008 at 10:48:30PM +0200, Dag Sverre Seljebotn wrote: though we might add a different syntax for type declaration (using decorators) so that the same code can also be run using the Python interpreter.) That would be very neat. I can see how you can get around dynamical typing

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Amit Itagi
Robert, I followed the recommended steps. Now I have numpy and numpy-1.0.4-py2.5.egg-info in Python-2.5.2/lib/python2.5/site-packages. However, I am not able to import numpy at the python prompt. Do I have to set pythonpath or something ? Thanks Rgds, Amit On Tue, Apr 1, 2008 at 2:44 PM,

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 4:03 PM, Amit Itagi [EMAIL PROTECTED] wrote: Robert, I followed the recommended steps. Now I have numpy and numpy-1.0.4-py2.5.egg-info in Python-2.5.2/lib/python2.5/site-packages. However, I am not able to import numpy at the python prompt. Do I have to set pythonpath

Re: [Numpy-discussion] Numpy installation

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 4:21 PM, Amit Itagi [EMAIL PROTECTED] wrote: This directory is just the Python source distribution (post configure and make). I don't have root permissions to our cluster and the default python distribution is an older one. Hence, I have my custom Python distribution in

Re: [Numpy-discussion] missing function in numpy.ma?

2008-04-01 Thread Travis E. Oliphant
Charles Doutriaux wrote: Hi Travis, Ok we're almost there, in my test suite i get: maresult = numpy.core.ma.take(ta, indices, axis=axis) AttributeError: 'module' object has no attribute 'ma' data = numpy.core.ma.take(ax[:], indices) AttributeError: 'module' object has no attribute

Re: [Numpy-discussion] output arguments for dot(), tensordot()

2008-04-01 Thread Robert Kern
On Tue, Apr 1, 2008 at 11:56 AM, Andreas Klöckner [EMAIL PROTECTED] wrote: Hi all, is there a particular reason why dot() and tensordot() don't have output arguments? No technical reason. It just hasn't been done. If you were to implement it, we would be happy to accept it. -- Robert Kern

[Numpy-discussion] newbie doubt about dot()

2008-04-01 Thread harryos
i am slightly confused by this maths i need to calculate wk=uk o (L-Psi) where uk=a vector of size (1 X N^2) o =scalar product l,Psi=vectors of (N^2 X 1) i have an ndarray U of shape(M X N^2)where uk is one of the rows , and L of shape (M X N^2) where l.transpose() is one of the rows, If i were

Re: [Numpy-discussion] newbie doubt about dot()

2008-04-01 Thread Alan G Isaac
On Tue, 1 Apr 2008, harryos apparently wrote: i need to calculate wk=uk o (L-Psi) where uk=a vector of size (1 X N^2) o =scalar product l,Psi=vectors of (N^2 X 1) i have an ndarray U of shape(M X N^2)where uk is one of the rows , and L of shape (M X N^2) where l.transpose() is one of