Re: Slicing an array in groups of eight

2009-05-21 Thread Robert Kern
On 2009-05-21 15:51, Graham Arden wrote: A python novice writes. Hello, I'm trying to extract certain frames from a stack of images as part of a project. In order to do this I need to produce an array which consists of a group of eight, then misses the next 8, then selects the next eight e

Re: Slicing an array in groups of eight

2009-05-21 Thread Emile van Sebille
On 5/21/2009 1:51 PM Graham Arden said... A python novice writes. Hello, I'm trying to extract certain frames from a stack of images as part of a project. In order to do this I need to produce an array which consists of a group of eight, then misses the next 8, then selects the next eight

Re: Slicing an array in groups of eight

2009-05-21 Thread Vlastimil Brom
2009/5/21 Graham Arden : > A python novice writes. > > Hello, > > I'm trying to extract certain frames from a stack of images as part of > a project.  In order to do this I need to produce an array which > consists of a group of eight, then misses the next 8, then selects the > next eight etc.

Slicing an array in groups of eight

2009-05-21 Thread Graham Arden
A python novice writes. Hello, I'm trying to extract certain frames from a stack of images as part of a project. In order to do this I need to produce an array which consists of a group of eight, then misses the next 8, then selects the next eight etc. i.e (0, 1, 2, 3, 4, 5, 6, 7, 16, 17,18