2010/8/5, Konstantin Klementiev <kklement...@cells.es>:
> Dear all,
>
> I am impressed by the performance and features of pyTables described in its
> manual. I hope it can suite my needs as well.

Well, fitting your needs is the main point indeed.

> I want to store a big dataset of values calculated in arbitrary precision
> arithmetic. Each value consists of three long integers: numerator,
> denominator
> and an integer under sqrt() calculated in sympy.
>
> Question 1:
> Can long integers (each one of virtually unlimited length) be stored by
> pyTables?

Yes.  Use a VLArray leaf with an ObjectAtom.  The long integers will
be automatically pickled when saved and unpickled when loaded.

>
> Because many of my values are zeroes, the dataset will be indexed by a
> clever
> indexing function that ignores these zeroes, where each index points to a
> variable-length record.
>
> Question 2:
> Can pyTables store records of different length? Each item of these records
> is
> again represented by three long integers.

Again, the leaf that support records of different length is VLArray.
Take it a look and see if it fits your bill.

Cheers,

-- 
Francesc Alted

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to