Hi Tim,

Thanks!

I think for what you want to do you should be using the read() method [1],
which does support the out argument rather than literal slicing.

Be Well
Anthony

1.
http://pytables.github.io/usersguide/libref/structured_storage.html#tables.Table.read


On Sun, Jun 2, 2013 at 7:26 PM, Tim Burgess <timburg...@mac.com> wrote:

> Yes, congratulations on the new release folks! I am trying out some of my
> codebase with 3.0.0 at present.
>
> - All read methods now have an optional *out* argument that allows to
>   pass a pre-allocated array to store data.
>
> I have a question about the above. And that is whether this is available
> when reading slices?
>
> Looking thru the master branch codebase, it seems that a bit of user code
> like:
>
> hotspot = h5f.root.anom[firstindex]
>
> where I am taking a 2D plane out of a 3D array using just the first index,
> will use __getitem__() which in turn uses _read_slice(startl, stopl, stepl
> , shape). So at present, the 'out' parm is not available for slicing?
>
> Tim Burgess
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Pytables-users mailing list
> Pytables-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pytables-users
>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to