Re: [Numpy-discussion] [numfocus] Growing the contributor base of Numpy

2013-03-26 Thread Ralf Gommers
On Mon, Mar 25, 2013 at 7:56 PM, Jonathan Rocher jroc...@enthought.comwrote: Dear all, One recurring question is how to *grow the contributor base* to NumPy and provide help and relief to core developers and maintainers. One way to do this would be to *leverage the upcoming SciPy

Re: [Numpy-discussion] variables not defined in numpy.random__init.py__ ?

2013-03-26 Thread Dinesh B Vadhia
@ Ralf. I missed info.py at the top and it is a valid statement. @ Brad. My project is using Numpy and Scipy and falls over at this point when using PyInstaller. One of the project source files has an import random from the Standard Library. As you say, at this point in tempfile.py, it is

Re: [Numpy-discussion] Implementing a find first style function

2013-03-26 Thread Phil Elson
Bump. I'd be interested to know if this is a desirable feature for numpy? (specifically the 1D find functionality rather than the any/all also discussed) If so, I'd be more than happy to submit a PR, but I don't want to put in the effort if the principle isn't desirable in the core of numpy.

[Numpy-discussion] howto reduce along arbitrary axis

2013-03-26 Thread Neal Becker
In the following code, the function maxstar is applied along the last axis. Can anyone suggest how to modify this to apply reduction along a user-specified axis? def maxstar2 (a, b): return max (a, b) + log1p (exp (-abs (a - b))) def maxstar (u): s = u.shape[-1] if s == 1:

[Numpy-discussion] howto reduce along arbitrary axis

2013-03-26 Thread Chao YUE
Hi Neal, I forward you this mail which I think might be of help to your question. Chao -- Forwarded message -- From: Chao YUE chaoyue...@gmail.com Date: Sat, Mar 16, 2013 at 5:40 PM Subject: indexing of arbitrary axis and arbitrary slice? To: Discussion of Numerical Python

Re: [Numpy-discussion] howto reduce along arbitrary axis

2013-03-26 Thread Chao YUE
Oh sorry, my fault... here is the answer by Nathaniel Smith: def retrieve_data(a, ax, idx): full_idx = [slice(None)] * a.ndim full_idx[ax] = idx return a[tuple(full_idx)] Or for the specific case where you do know the axis in advance, you just don't know how many trailing axes there

Re: [Numpy-discussion] [numfocus] Growing the contributor base of Numpy

2013-03-26 Thread David Cournapeau
On Mon, Mar 25, 2013 at 6:56 PM, Jonathan Rocher jroc...@enthought.com wrote: Dear all, One recurring question is how to grow the contributor base to NumPy and provide help and relief to core developers and maintainers. One way to do this would be to leverage the upcoming SciPy conference in

Re: [Numpy-discussion] ANN: NumPy 1.7.1rc1 release

2013-03-26 Thread Ondřej Čertík
On Sun, Mar 24, 2013 at 8:00 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Mar 24, 2013 at 3:02 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: Hi, I'm pleased to announce the availability of the first release candidate of NumPy 1.7.1rc1. Sources and binary installers

Re: [Numpy-discussion] Any plans for windows 64-bit installer for 1.7?

2013-03-26 Thread Matthew Brett
Hi Ondrej, On Thu, Feb 7, 2013 at 3:18 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Thu, Feb 7, 2013 at 12:29 PM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Thu, Feb 7, 2013 at 11:38 AM, Matthew Brett matthew.br...@gmail.com wrote: a) If we cannot build Scipy now, it