From: Francesc A. <fa...@py...> - 2004-06-17 08:53:10
|
Hi Ahmad, In addition to what Vicent has (correctly enough) told you, a couple of suggestions: - If you want to mix very large strings with small ones, and want to reduce the amount of space used on disk, try to use compression (see chapter 5 of User's Manual). In that way, you will be using only the necessary disk space (or even less, depending on your data compressibility). It's a simple and efficient way to simulate variable length records. - If you insist in using true variable length strings, you may use a VLArray combined with a VLString atom. That will provide you true (and unicode) variable length strings. You can link the entries of the VLArray to your tables by adding an integer field in the later where you can put the reference to the entry in the VLArray. This will hopefully allow you to find a workaround until I find time to implement the VLTables, where fully variable length fields will be allowed. Regards, Francesc A Dimecres 16 Juny 2004 17:18, Ahmad Hosseinzadeh va escriure: > Hi, > > I'm new to PyTables. > I don't know how to declare a string field with > variable length in my tables. > Also I have problem with updating a table or array. > I want to update a record of my table (PyTables) but I > don't know how. > I have the same problem with arrays in PyTables. > My solution is to remove the previous one and create a > new record or array but it is not efficient. > Can anyone help me? > > Thanks. > Ahmad. > > > ______________________________________________________________________ > Post your free ad now! http://personals.yahoo.ca > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND > _______________________________________________ > Pytables-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pytables-users > > -- Francesc Alted |