Re: [Numpy-discussion] Comparing NumPy/IDL Performance

2011-09-30 Thread David Verelst
Just want to point to some excellent material that was recently presented at the course Advanced Scientific Programming in Pythonhttps://python.g-node.org/wiki/at St Andrews. Day 3 was titled The Quest for Speed (see https://python.g-node.org/wiki/schedule) and might interest you as well.

[Numpy-discussion] nditer: possible to manually handle dimensions with different lengths?

2011-09-30 Thread John Salvatier
Using nditer, is it possible to manually handle dimensions with different lengths? For example, lets say I had an array A[5, 100] and I wanted to sample every 10 along the second axis so I would end up with an array B[5,10]. Is it possible to do this with nditer, handling the iteration over the

Re: [Numpy-discussion] Functions for finding the relative extrema of numeric data

2011-09-30 Thread Jacob Silterra
Hello all, I just opened a pull request to add scipy.signal._peak_finding.find_peaks, which finds the relative maxima in a 1d ndarray. The algorithm behind this function has been discussed on the scipy list, but here's a quick recap: The idea is basically convolve the function with a wavelet of

Re: [Numpy-discussion] datetimes with date vs time units, local time, and time zones

2011-09-30 Thread Mark Wiebe
2011/9/29 Grové grove.st...@gmail.com Hi Mark Did you ever get to write: date_as_datetime(datearray, hour, minute, second, microsecond, timezone='local', unit=None, out=None) and datetime_as_date(datetimearray, timezone='local', out=None) ? I never got to these functions, no. I am

Re: [Numpy-discussion] Weird upcast behavior with 1.6.x, working as intended?

2011-09-30 Thread Mark Wiebe
On Fri, Sep 23, 2011 at 1:52 PM, Olivier Delalleau sh...@keba.be wrote: NB: I opened a ticket (http://projects.scipy.org/numpy/ticket/1949) about this, in case it would help getting some attention on this issue. A lot of what you're seeing here is due to changes I did for 1.6. I generally

Re: [Numpy-discussion] Comping Numpy in Cython

2011-09-30 Thread Mark Wiebe
On Tue, Sep 20, 2011 at 8:38 AM, Sean Poust po...@berkeley.edu wrote: I keep getting this error: #warning Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API and a bunch of undefined variables when comping cython code with numpy This is a warning introduced in current

Re: [Numpy-discussion] datetime64 y2k38 bug

2011-09-30 Thread Mark Wiebe
On Sun, Sep 18, 2011 at 8:52 PM, josef.p...@gmail.com wrote: On Sun, Sep 18, 2011 at 11:13 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Sep 18, 2011 at 9:08 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Sep 18, 2011 at 6:32 PM, Benjamin Root

Re: [Numpy-discussion] nditer: possible to manually handle dimensions with different lengths?

2011-09-30 Thread Mark Wiebe
On Fri, Sep 30, 2011 at 8:03 AM, John Salvatier jsalv...@u.washington.eduwrote: Using nditer, is it possible to manually handle dimensions with different lengths? For example, lets say I had an array A[5, 100] and I wanted to sample every 10 along the second axis so I would end up with an

Re: [Numpy-discussion] Weird upcast behavior with 1.6.x, working as intended?

2011-09-30 Thread Olivier Delalleau
2011/9/30 Mark Wiebe mwwi...@gmail.com On Fri, Sep 23, 2011 at 1:52 PM, Olivier Delalleau sh...@keba.be wrote: NB: I opened a ticket (http://projects.scipy.org/numpy/ticket/1949) about this, in case it would help getting some attention on this issue. A lot of what you're seeing here is due