[Numpy-discussion] how to convert btw rgb and pixel value

2007-11-04 Thread [EMAIL PROTECTED]
hi i wish to convert an rgb image into an array of double values..is there a method for that in numpy? also i want to create an array of doubles into corresponding rgb tuples of an image can anyone guide me? dn ___ Numpy-discussion mailing list Numpy-dis

Re: [Numpy-discussion] Round 2 with Leopard+Python

2007-11-04 Thread David Cournapeau
Brian Granger wrote: > Hi, > > In the process of working through the issues with sys.path on Leopard, > I have found another potential Leopard bug that is particularly nasty. > > In Tiger, sudo preserves environment variables: > > $ export FOO=/tmp > $ python -c "import os; print os.environ['FOO']"

Re: [Numpy-discussion] Making a minimalist NumPy

2007-11-04 Thread David M. Cooke
On Nov 4, 2007, at 15:51 , Benjamin M. Schwartz wrote: > NumPy is included in the OLPC operating system, which is very > constrained in > space. Therefore, it would be nice to remove some subpackages to > save a few > megabytes. For example, the system does not include any Fortran > code o

Re: [Numpy-discussion] segfault

2007-11-04 Thread Pauli Virtanen
su, 2007-11-04 kello 11:13 -1000, Eric Firing kirjoitti: > A quick scan of the tickets did not show me anything like the following, > but I might have missed it. The attached script generates a segfault on > my ubuntu feisty system with svn numpy. Running inside of ipython, the > segfault occu

[Numpy-discussion] Numpy book and PyArray_CastToType

2007-11-04 Thread Matthieu Brucher
Hi, I'm trying to use PyArray_CastToType(), but according to the book, there are two arguments, a PyArrayObject* and a PyArrayDescr*, but according to the header file, there are three arguments, an additional int. Does someone know its use ? Matthieu -- French PhD student Website : http://miles.

[Numpy-discussion] segfault

2007-11-04 Thread Eric Firing
A quick scan of the tickets did not show me anything like the following, but I might have missed it. The attached script generates a segfault on my ubuntu feisty system with svn numpy. Running inside of ipython, the segfault occurs upon exiting ipython, not upon running the script. Running th

[Numpy-discussion] Making a minimalist NumPy

2007-11-04 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 NumPy is included in the OLPC operating system, which is very constrained in space. Therefore, it would be nice to remove some subpackages to save a few megabytes. For example, the system does not include any Fortran code or compiler, so f2py (3.6 MB

Re: [Numpy-discussion] NumPy trunk is frozen for upcoming 1.0.4 release

2007-11-04 Thread Jarrod Millman
On Nov 4, 2007 11:53 AM, Emanuel Woiski <[EMAIL PROTECTED]> wrote: > I am havig a lot of trouble for quite some time wih numpy - scipy Windows > binaries for old AMD (pre-XP) processors. Since I teach in a lab with lots > of machines using that kind of processor, I got stuck with numpy 1.0rc2 and >

Re: [Numpy-discussion] NumPy trunk is frozen for upcoming 1.0.4 release

2007-11-04 Thread Emanuel Woiski
On Nov 4, 2007 5:15 PM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > On Nov 3, 2007 11:06 AM, Albert Strasheim <[EMAIL PROTECTED]> wrote: > > Things mostly look good as far as the buildslaves are concerned, except > on > > Windows x64, where one of the regression tests is failing: > > > > > http://

Re: [Numpy-discussion] NumPy trunk is frozen for upcoming 1.0.4 release

2007-11-04 Thread Jarrod Millman
On Nov 3, 2007 11:06 AM, Albert Strasheim <[EMAIL PROTECTED]> wrote: > Things mostly look good as far as the buildslaves are concerned, except on > Windows x64, where one of the regression tests is failing: > > http://buildbot.scipy.org/Windows%20XP%20x86_64%20MSVC/builds/163/step-shell_2/0 Hello,