Re: [Pytables-users] Using built-in slice objects on CArray

2013-01-23 Thread Anthony Scopatz
yeah, indexing with a list (rather than a tuple) has a different meaning. The most notable place I have seen list-indexing used is with numpy structured arrays. In all other locations the tuple slicing is for drilling down different dimensions, as you say. On Wed, Jan 23, 2013 at 10:25 AM, Andre

Re: [Pytables-users] Using built-in slice objects on CArray

2013-01-23 Thread Andreas Hilboll
Am Mi 23 Jan 2013 16:57:27 CET schrieb Anthony Scopatz: > Hi Andreas, > > I think that the problem here is that coord_slice is actually a list > of slices, which you can't index by. (Though, you may be able to in > numpy...) > > Try something like _ds[coord_slice[0]] instead. > > Be Well > Anthony

Re: [Pytables-users] Using built-in slice objects on CArray

2013-01-23 Thread Anthony Scopatz
Hi Andreas, I think that the problem here is that coord_slice is actually a list of slices, which you can't index by. (Though, you may be able to in numpy...) Try something like _ds[coord_slice[0]] instead. Be Well Anthony B eW On Tue, Jan 22, 2013 at 8:44 AM, Andreas Hilboll wrote: > Hi,

[Pytables-users] Using built-in slice objects on CArray

2013-01-23 Thread Andreas Hilboll
Hi, how can I use Python's built-in `slice` object on CArray? Currently, I'm trying In: coord_slice Out: [slice(0, 31, None), slice(0, 5760, None), slice(0, 2880, None)] In: _ds Out: /data/mydata (CArray(31, 5760, 2880), shuffle, blosc(5)) '' atom := Float32Atom(shap