Hi,

I have a two dimensional tables.Array. I would like to make a 'lazy
slice' of this array that doesn't load any data off disk until actual
elements are read from it. This is similar to how a simple slice works
in numpy. In numpy. if I have a 2d array arr and I say arr[10], no
data is copied; I've just made a view into my data. It would be really
useful to be able to do that with arrays stored in pytables.

To be totally clear, if I say:

x = my_pytables_array[10]

then row 10 in its entirety is read in immediately (right?). What I
instead want is something that lets me make a 'view' of row 10, and
will load in chunks of the underlying row as data is accessed from
this row. That way, columns whose chunks are never actually used will
never be loaded in.

Does anyone know of a good way to do this? Really appreciate it.

Thanks,

Tim

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to