Re: [Numpy-discussion] New (old) function proposal.

2014-02-19 Thread Warren Weckesser
On Tue, Feb 18, 2014 at 11:27 AM, Sebastian Berg wrote: > On Di, 2014-02-18 at 09:05 -0700, Charles R Harris wrote: > > Hi All, > > > > > > There is an old ticket, #1499, that suggest adding a segment_axis > > function. > > > > def segment_axis(a, length, overlap=0, axis=None, end='cut', endvalue

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Tony Yu
On Tue, Feb 18, 2014 at 11:11 AM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > > > > On Tue, Feb 18, 2014 at 9:03 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> >> On Tue, Feb 18, 2014 at 9:40 AM, Nathaniel Smith wrote: >> >>> On 18 Feb 2014 11:05, "Charles R Ha

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Nathaniel Smith
On 18 Feb 2014 12:04, "Charles R Harris" wrote: > Where does 'shingle' come from. I can see the analogy but haven't seen that as a technical term. It just seems like a good name :-). -n ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http:

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Jaime Fernández del Río
On Tue, Feb 18, 2014 at 9:03 AM, Charles R Harris wrote: > > > > On Tue, Feb 18, 2014 at 9:40 AM, Nathaniel Smith wrote: > >> On 18 Feb 2014 11:05, "Charles R Harris" >> wrote: >> > >> > Hi All, >> > >> > There is an old ticket, #1499, that suggest adding a segment_axis >> function. >> > >> > d

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Charles R Harris
On Tue, Feb 18, 2014 at 9:40 AM, Nathaniel Smith wrote: > On 18 Feb 2014 11:05, "Charles R Harris" > wrote: > > > > Hi All, > > > > There is an old ticket, #1499, that suggest adding a segment_axis > function. > > > > def segment_axis(a, length, overlap=0, axis=None, end='cut', endvalue=0): > >

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Nathaniel Smith
On 18 Feb 2014 11:05, "Charles R Harris" wrote: > > Hi All, > > There is an old ticket, #1499, that suggest adding a segment_axis function. > > def segment_axis(a, length, overlap=0, axis=None, end='cut', endvalue=0): > """Generate a new array that chops the given array along the given axis >

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Sebastian Berg
On Di, 2014-02-18 at 09:05 -0700, Charles R Harris wrote: > Hi All, > > > There is an old ticket, #1499, that suggest adding a segment_axis > function. > > def segment_axis(a, length, overlap=0, axis=None, end='cut', endvalue=0): > """Generate a new array that chops the given array along the

Re: [Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Benjamin Root
yes, but I don't like the name too much. Unfortunately, I can't think of a better one. Ben Root On Tue, Feb 18, 2014 at 11:05 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > Hi All, > > There is an old ticket, #1499 , > that suggest adding

[Numpy-discussion] New (old) function proposal.

2014-02-18 Thread Charles R Harris
Hi All, There is an old ticket, #1499 , that suggest adding a segment_axis function. def segment_axis(a, length, overlap=0, axis=None, end='cut', endvalue=0): """Generate a new array that chops the given array along the given axis into overlappi