Re: [Numpy-discussion] Building NumPy on Mac OS X without Apple GCC

2007-11-29 Thread Joshua Lippai
Thanks for the reply. Well, I built my Python stuff, including NumPy previously, before I changed to the higher GCC version. Do you know if there's an option I can toggle that will specify Apple's GCC to be used? $ CC=/usr/bin/gcc python setup.py build -- Robert Kern I have come

Re: [Numpy-discussion] documentation generator based on pyparsing

2007-11-29 Thread Robert Cimrman
Hi Nils, Nils Wagner wrote: The output of ./gendocs.py -m 'scipy.linsolve.umfpack' differs from your example output (available at http://scipy.org/Generate_Documentation) I had to update the umfpack info.py file (where the module docstring is) to conform the documentation standards. The

Re: [Numpy-discussion] Building NumPy on Mac OS X without Apple GCC

2007-11-29 Thread David Cournapeau
Joshua Lippai wrote: Thanks, it worked perfectly. I'd hate to be a little off topic in the NumPy discussion and bug you, but when I try to compile the latest scipy, I get: g++: unrecognized option '-no-cpp-precomp' cc1plus: error: unrecognized command line option -arch cc1plus: error:

Re: [Numpy-discussion] Building NumPy on Mac OS X without Apple GCC

2007-11-29 Thread Joshua Lippai
Joshua Lippai wrote: Thanks, it worked perfectly. I'd hate to be a little off topic in the NumPy discussion and bug you, but when I try to compile the latest scipy, I get: g++: unrecognized option '-no-cpp-precomp' cc1plus: error: unrecognized command line option -arch cc1plus:

Re: [Numpy-discussion] How to remove loops over inner()

2007-11-29 Thread Hans-Andreas Engel
Essentially, you want to operate on a stack of two dimensional arrays, correct? Yes, this is correct -- and I also think that one should be able to provide a list of axes to be ignored. I'd be mildly supportive of something like this for tensordot; I'd prefer more descriptive name for

[Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Giorgio F. Gilestro
Hi guys, does anyone of you happen to have sitting somewhere a DMG of a recent version of SciPy compiled for MacOSX 10.4? The SciPy webpage does not carry official releases and it is sending me to the Scipy Superpack by Chris Fonnesbeck but that superpack seems to be for intel cpu only. I

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Giorgio F. Gilestro
I am not sure I got what you mean but I am using PIL to convert arrays to images and viceversa see http://mail.python.org/pipermail/image-sig/2006-September/004099.html I embed bmps using wxpython. Zachary Pincus wrote: Hello all, I'm curious if people have experience with / preferences for

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Joshua Lippai
It's actually pretty simple to compile it yourself once you've installed the latest Xcode from http://developer.apple.com and X11 from the OS X Tiger install disc. The instructions on Scipy's official OS X installation page ( http://scipy.org/Installing_SciPy/Mac_OS_X ) are great for that. That

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Angus McMorland
On 30/11/2007, Zachary Pincus [EMAIL PROTECTED] wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. I'm not sure if you're after anything specific, but a very convenient way to show 2-D arrays on screen is

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Joshua Lippai
On Nov 29, 2007 2:32 PM, Zachary Pincus [EMAIL PROTECTED] wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. Pyglet looks relatively easy -- you can feed an image buffer object with a string or a ctypes pointer.

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Christopher Barker
Zachary Pincus wrote: wxPython looks pretty easy too, as there are facilities for getting pixels from a buffer. Does anyone have any experience with these? some. Are there ways of allowing a numpy array and a wxPython image to point to the same memory? yup. You can build a wxImage

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Christopher Barker
Joshua Lippai wrote: You should probably email the guy and ask him to make older versions of the superpack available, or at least the last PPC one he made. Best of luck. Even better would be Universal (fat) binaries -- I'm pretty sure this is now possible, but haven't figured it out myself

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Joshua Lippai
On Nov 29, 2007 3:21 PM, Christopher Barker [EMAIL PROTECTED] wrote: Joshua Lippai wrote: You should probably email the guy and ask him to make older versions of the superpack available, or at least the last PPC one he made. Best of luck. Even better would be Universal (fat) binaries --

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Giorgio F. Gilestro
Hi Josh, you're right I should probably email the guy directly. I eventually managed to compile it installing the latest xcode, the latest cctool to fix the __dso_handle bug, the gfortran and a couple of other things. It took me an entire afternoon and now I don't have errors on the the

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Robert Kern
Zachary Pincus wrote: Hello all, I'm curious if people have experience with / preferences for how to display a numpy array onscreen as an image. Pyglet looks relatively easy -- you can feed an image buffer object with a string or a ctypes pointer. I presume getting a string from an

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Christopher Barker
Joshua Lippai wrote: Chris Fonnesbeck used to distribute both PowerPC and Intel binaries, but he can't compile them for PowerPC at all anymore because he no longer has access to a PowerPC machine. You can build fat binaries with a single machine -- either one. Whether Chris wants to spend his

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread Barry Wark
Using the gfortran from http://r.research.att.com/tools/, it's trivial to build a universal build from source. The instructions on scipy.org won't lead you astray. I will ask around at work. Perhaps we can start building universal scipy builds for distribution. Can anyone from the scipy devs

Re: [Numpy-discussion] scipy binary for macosx tiger on ppc

2007-11-29 Thread David Cournapeau
Barry Wark wrote: Using the gfortran from http://r.research.att.com/tools/, it's trivial to build a universal build from source. The instructions on scipy.org won't lead you astray. I will ask around at work. Perhaps we can start building universal scipy builds for distribution. Can anyone

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Zachary Pincus
Thanks for the suggestions, everyone! All very informative and most helpful. For what it's worth, here's my application: I'm building a tool for image processing which needs some manual input in a few places (e.g. user draws a few lines). The images are greyscale images with 12-14 bits of

Re: [Numpy-discussion] swig numpy2carray converters

2007-11-29 Thread Bill Spotz
I have just committed the latest version of numpy.i (a swig interface file for bridging between C arrays and numerical python) to the numpy svn repository. There are three relatively new features that are now supported: * It is now possible to wrap functions that expect integer arguments

Re: [Numpy-discussion] display numpy array as image

2007-11-29 Thread Joe Harrington
If you want to explore the array interactively, blink images, mess with colormaps using the mouse, rescale the image values, mark regions, add labels, look at dynamic plots of rows and columns, etc., get the ds9 image viewer and the xpa programs that come with it that allow it to communicate with

Re: [Numpy-discussion] documentation generator based on pyparsing

2007-11-29 Thread Nils Wagner
On Thu, 29 Nov 2007 10:01:26 +0100 Robert Cimrman [EMAIL PROTECTED] wrote: Hi Nils, Nils Wagner wrote: The output of ./gendocs.py -m 'scipy.linsolve.umfpack' differs from your example output (available at http://scipy.org/Generate_Documentation) I had to update the umfpack info.py