A Thursday 03 March 2011 20:46:30 Davide Cittaro escrigué: > On 03/mar/2011, at 20:42, Davide Cittaro <davide.cittaro@ifom-ieo- campus.it> wrote: > > Mmm, I've probably missed a 1d example in the docs, I hence thought > > I should specify 2d shape (1 col). Thanks > > Do you mean shape=(N,0) ?
Well, if you want to save an array of shape say, (1000,), on a CArray, then, you should set the same shape to the CArray, that is, (1000,). Something like: a = np.arange(1000, dtype=np.float64) ca = h5f.createCArray(f.root, 'a', tb.Float64Atom(), a.shape) Does that make sense? -- Francesc Alted ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users