[Numpy-discussion] Creating a RGB-image from BW

2009-04-27 Thread Johannes Bauer
Hello group, I've been redicted from usenet ("Convert numpy.ndarray into "normal" array", <75dgm1f16hqn...@mid.dfncis.de>) here and hope this is the right place. Basically, what I have is a numpy-Array which I got from a FITS-file (it's black/white). I want to display that using GTK. Therefore ev

Re: [Numpy-discussion] MemoryError in numpy.test() on AIX installation

2009-04-27 Thread David Cournapeau
Whitcomb, Mr. Tim wrote: > To further complicate issues, I do not have sysadmin rights on the > machine in question, and I'm not entirely confident that Python itself > was built properly (I've had to sort out some other issues as well). > The version in use is: > Python 2.5.2 (r252:60911, Sep 17 2

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread David Cournapeau
Wes McKinney wrote: > Hello, > > I am wondering if anyone can offer some suggestions on this problem. > Over the last year or so I have been building a number of libraries on > top of NumPy + SciPy + matplotlib and other libraries which are being > used for investigative research for my company's p

Re: [Numpy-discussion] MemoryError in numpy.test() on AIXinstallation

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 2:10 PM, Charles R Harris wrote: > > > On Mon, Apr 27, 2009 at 1:59 PM, Whitcomb, Mr. Tim < > tim.whitc...@nrlmry.navy.mil> wrote: > >> >> -- >> >> import numpy as np >> >> from cStringIO import StringIO >> >>

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 7:43 PM, Charles R Harris wrote: > > > On Mon, Apr 27, 2009 at 7:28 PM, David Cournapeau wrote: > >> On Tue, Apr 28, 2009 at 9:56 AM, Charles R Harris >> wrote: >> >> > Hmm... OK, I think that is because of the endianess function added to >> the >> > API. It is called dur

Re: [Numpy-discussion] Splitting multiarray and umath into smaller files: ready for review

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 2:53 AM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Hi, > >Following the "linker script, smaller source files and symbols > visibility" discussion, I have implemented something which seems to work > reasonably well. The code is available on github for rev

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 7:28 PM, David Cournapeau wrote: > On Tue, Apr 28, 2009 at 9:56 AM, Charles R Harris > wrote: > > > Hmm... OK, I think that is because of the endianess function added to the > > API. It is called during module load and since it isn't there for 1.2, > > crash. There is also

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread David Cournapeau
On Tue, Apr 28, 2009 at 9:56 AM, Charles R Harris wrote: > Hmm... OK, I think that is because of the endianess function added to the > API. It is called during module load and since it isn't there for 1.2, > crash. There is also a check for the API version that should have raised an > error, but

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 5:40 PM, Robert Kern wrote: > On Mon, Apr 27, 2009 at 18:36, Wes McKinney wrote: > > On Mon, Apr 27, 2009 at 5:59 PM, Charles R Harris > > wrote: > >> > >> On Mon, Apr 27, 2009 at 3:05 PM, Wes McKinney > wrote: > >>> > >>> Hello, > >>> > >>> I am wondering if anyone can

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Robert Kern
On Mon, Apr 27, 2009 at 18:36, Wes McKinney wrote: > On Mon, Apr 27, 2009 at 5:59 PM, Charles R Harris > wrote: >> >> On Mon, Apr 27, 2009 at 3:05 PM, Wes McKinney wrote: >>> >>> Hello, >>> >>> I am wondering if anyone can offer some suggestions on this problem. Over >>> the last year or so I ha

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Wes McKinney
On Mon, Apr 27, 2009 at 5:59 PM, Charles R Harris wrote: > > > On Mon, Apr 27, 2009 at 3:05 PM, Wes McKinney wrote: > >> Hello, >> >> I am wondering if anyone can offer some suggestions on this problem. Over >> the last year or so I have been building a number of libraries on top of >> NumPy + S

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 3:25 PM, Michael S. Gilbert < michael.s.gilb...@gmail.com> wrote: > On Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > > I had mentioned recently some interest in using fractions in the numpy > > polynomial class. Suprisingly, it actually works for the most par

Re: [Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 3:05 PM, Wes McKinney wrote: > Hello, > > I am wondering if anyone can offer some suggestions on this problem. Over > the last year or so I have been building a number of libraries on top of > NumPy + SciPy + matplotlib and other libraries which are being used for > invest

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Michael S. Gilbert
On Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > I had mentioned recently some interest in using fractions in the numpy > polynomial class. Suprisingly, it actually works for the most part out > of the box, which is great. However, there are some minor issues. For > example: > > >>

Re: [Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Pauli Virtanen
Mon, 27 Apr 2009 17:04:17 -0400, Michael S. Gilbert wrote: > I had mentioned recently some interest in using fractions in the numpy > polynomial class. Suprisingly, it actually works for the most part out > of the box, which is great. However, there are some minor issues. For > example: > > >>>

[Numpy-discussion] Managing Python with NumPy and many external libraries on multiple Windows machines

2009-04-27 Thread Wes McKinney
Hello, I am wondering if anyone can offer some suggestions on this problem. Over the last year or so I have been building a number of libraries on top of NumPy + SciPy + matplotlib and other libraries which are being used for investigative research for my company's problem domain in place of, say,

[Numpy-discussion] Some minor issues with numpy and fractions

2009-04-27 Thread Michael S. Gilbert
I had mentioned recently some interest in using fractions in the numpy polynomial class. Suprisingly, it actually works for the most part out of the box, which is great. However, there are some minor issues. For example: numpy.poly1d( [ fractions.Fraction(1,2) , fractions.Fraction(1,8) ] >>

Re: [Numpy-discussion] MemoryError in numpy.test() on AIXinstallation

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 1:59 PM, Whitcomb, Mr. Tim < tim.whitc...@nrlmry.navy.mil> wrote: > >> -- > >> import numpy as np > >> from cStringIO import StringIO > >> from numpy.lib import format > >> > >> f = StringIO

Re: [Numpy-discussion] help with vectorization

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 1:24 PM, Mathew Yeates wrote: > I should add, I'm starting with N rotation angles. So I should rephrase > and say I'm starting with N angles and N xy pairs. > > > > Mathew Yeates wrote: > > I know this must be trivial but I can't seem to get it right > > > > I have N 2x2 a

Re: [Numpy-discussion] MemoryError in numpy.test() on AIXinstallation

2009-04-27 Thread Whitcomb, Mr. Tim
>> -- >> import numpy as np >> from cStringIO import StringIO >> from numpy.lib import format >> >> f = StringIO() >> a = np.array([], dtype='object') >> format.write_array(f,

Re: [Numpy-discussion] MemoryError in numpy.test() on AIX installation

2009-04-27 Thread Charles R Harris
On Mon, Apr 27, 2009 at 1:12 PM, Whitcomb, Mr. Tim < tim.whitc...@nrlmry.navy.mil> wrote: > I'm trying to install NumPy 1.3.0 on an IBM Power6. I can build and > install successfully, but when I try to execute the unit test suite it > crashes with a MemoryError (with no additional information on

Re: [Numpy-discussion] help with vectorization

2009-04-27 Thread Mathew Yeates
I should add, I'm starting with N rotation angles. So I should rephrase and say I'm starting with N angles and N xy pairs. Mathew Yeates wrote: > I know this must be trivial but I can't seem to get it right > > I have N 2x2 arrays which perform a rotation. I also have N xy pairs to > transpos

Re: [Numpy-discussion] inplace matrix multiplication

2009-04-27 Thread Frédéric Bastien
You are right, some here told me about this. I should have posted it here for reference. thanks Fred On Fri, Apr 24, 2009 at 1:45 PM, David Warde-Farley wrote: > On 9-Jan-09, at 4:31 PM, Robert Kern wrote: > > > You can't in numpy. With scipy.linalg.fblas.dgemm() and the right > > arguments, yo

[Numpy-discussion] help with vectorization

2009-04-27 Thread Mathew Yeates
I know this must be trivial but I can't seem to get it right I have N 2x2 arrays which perform a rotation. I also have N xy pairs to transpose. What is the simplest way to perform the transformation without looping? Thanks from someone about to punch their screen. __

[Numpy-discussion] MemoryError in numpy.test() on AIX installation

2009-04-27 Thread Whitcomb, Mr. Tim
I'm trying to install NumPy 1.3.0 on an IBM Power6. I can build and install successfully, but when I try to execute the unit test suite it crashes with a MemoryError (with no additional information on the error - just the traceback). The failure occurs in test_roundtrip in numpy/lib/tests/test_fo

Re: [Numpy-discussion] Splitting multiarray and umath into smaller files: ready for review

2009-04-27 Thread Stéfan van der Walt
Hi David 2009/4/27 David Cournapeau : >    Following the "linker script, smaller source files and symbols > visibility" discussion, I have implemented something which seems to work > reasonably well. The code is available on github for review: > > http://github.com/cournape/numpy/tree/split_comp

[Numpy-discussion] Splitting multiarray and umath into smaller files: ready for review

2009-04-27 Thread David Cournapeau
Hi, Following the "linker script, smaller source files and symbols visibility" discussion, I have implemented something which seems to work reasonably well. The code is available on github for review: http://github.com/cournape/numpy/tree/split_comp This branch implements the following: