Re: [Numpy-discussion] Excluding index in numpy like negative index in R?

2008-12-09 Thread Joshua Lippai
You can make a mask array in numpy to prune out items from an array that you don't want, denoting indices you want to keep with 1's and those you don't want to keep with 0's. For instance, a = np.array([1,3,45,67,123]) mask = np.array([0,1,1,0,1],dtype=np.bool) anew = a[mask] will set anew equal

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Joshua Lippai
I agree with Jon here. I can see plenty of motivation for adding the names asin, etc., but there really isn't a need to remove the current versions, and it will just introduce compatibility issues when someone tries to run code written with NumPy 1.x using a NumPy 2.x installation for even the

Re: [Numpy-discussion] question about the documentation of linalg.solve

2008-11-19 Thread Joshua Lippai
If you use iPython and use numpy.linalg.solve??, you can see the source code of the file numpy/linalg/linalg.py that corresponds to the solve(a,b) function, not just the docstring: def solve(a, b): Solve the equation ``a x = b`` for ``x``. Parameters -- a :

Re: [Numpy-discussion] loadtxt error

2008-09-24 Thread Joshua Lippai
David said the bug was fixed in the trunk, which you don't have; the development state of the main source code, or the trunk, is the latest state available, and releases are always a bit behind trunk since it would be kind of ridiculous to make a new release every time someone commits a change.

Re: [Numpy-discussion] nose changes checked in

2008-06-20 Thread Joshua Lippai
tests, and this Nose system should make it easier to manage the tests. Josh On Wed, Jun 18, 2008 at 6:35 PM, Stéfan van der Walt [EMAIL PROTECTED] wrote: 2008/6/19 Joshua Lippai [EMAIL PROTECTED]: The new testing system works well over here, built on Mac OS X 10.5.2 with GCC 4.2. No errors

Re: [Numpy-discussion] nose changes checked in

2008-06-18 Thread Joshua Lippai
The new testing system works well over here, built on Mac OS X 10.5.2 with GCC 4.2. No errors/failures, but there is that warning Charles mentioned as well as the noticeable difference in speed between this and the old tests. Josh On Mon, Jun 16, 2008 at 8:28 PM, Alan McIntyre [EMAIL PROTECTED]

[Numpy-discussion] numpy.test error: test_hdquantiles

2008-05-25 Thread Joshua Lippai
I seem to be getting a few errors and failures with the current numpy SVN (1.2.0.dev5236). I get this output with numpy.test(1,10): ERROR: Ticket #396 -- Traceback (most recent call last): File

Re: [Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-31 Thread Joshua Lippai
AM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 12:45 AM, Joshua Lippai [EMAIL PROTECTED] wrote: I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for NumPy is clean and successful and my numpy.test produces no errors or failures, but when I type f2py from

Re: [Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-31 Thread Joshua Lippai
I eliminated everything easy-install related already since I actually was aiming to reinstall everything without it (though, alas, dateutil seems to require it now). On Mon, Mar 31, 2008 at 8:18 PM, Robert Kern [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 9:11 AM, Joshua Lippai [EMAIL

[Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)

2008-03-30 Thread Joshua Lippai
I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for NumPy is clean and successful and my numpy.test produces no errors or failures, but when I type f2py from Terminal, I get the following: $ f2py Traceback (most recent call last): File

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

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

2007-11-28 Thread Joshua Lippai
I updated my GCC to a more recent version a day ago, since Apple's Xcode Tools only provide GCC 4.0 and the current release of GNU's GCC is 4.2. I successfully achieved this, but now I run into a problem when trying to build NumPy: gcc: unrecognized option '-no-cpp-precomp' cc1: error:

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

2007-11-28 Thread Joshua Lippai
Joshua Lippai wrote: I updated my GCC to a more recent version a day ago, since Apple's Xcode Tools only provide GCC 4.0 and the current release of GNU's GCC is 4.2. I successfully achieved this, but now I run into a problem when trying to build NumPy: gcc: unrecognized option