El dt 27 de 03 del 2007 a les 12:07 -0700, en/na Stefan Kuzminski va escriure: > Thanks for looking into this ( no complaints here! ). Indeed using the > chunkshape parameter with pytables2.0 greatly improved the memory usage and > overall speed.
Good! > However... > > Switching to pytables2.0 brings a few wrinkles. Specifically there seems to > be something about numpy string handling that yeilds extra 'junk' at the end > of the string when the string column is referenced out, this code.. > > from tables import * > > fp = openFile( "foo", 'w' ) > > StringCol( itemsize=20,) > table = fp.createTable( fp.root, 'title', > { 'var1' : StringCol( itemsize=20) }, '') > table.append( [['abc']]) > fp.flush() > > b = table.read() > print b > print b['var1'] > > > yeilds this output.. > > [('abc',)] > ['[EMAIL PROTECTED]'] > Closing remaining open files: foo... done > > Do you have any idea what this is? This is with numpy 1.0.1. Well, this seems a bug in NumPy. I've entered a ticket for this: http://projects.scipy.org/scipy/numpy/ticket/483 Cheers, -- Francesc Altet | Be careful about using the following code -- Carabos Coop. V. | I've only proven that it works, www.carabos.com | I haven't tested it. -- Donald Knuth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users