如何使用slice
对象来访问tables.CArray
? 我目前拥有的是
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(shape=(), dflt=0.0)
maindim := 0
flavor := 'numpy'
byteorder := 'little'
chunkshape := (1, 45, 2880)
In: _ds[coord_slice]
Out: *** TypeError: long() argument must be a string or a number, not 'slice'