From: Norbert N. <Nor...@gm...> - 2005-01-25 14:52:07
|
Hi there, i would have assumed that the following works: ------------------------- #!/usr/bin/env python from tables import * file = openFile('tryout.h5','w') desc = {} desc['x'] = FloatCol() file.root.mytable = Table(desc) mytable = file.root.mytable row = mytable.row for i in range(3): row['x'] = i row.append() mytable.flush() for row in mytable.iterrows(): row['x'] = row['x'] + 0.5 mytable.flush() for row in mytable.iterrows(): print row['x'] file.close() ------------------------- but obviously, the writing is completely ignored. Is this intuitive approach wrong? Is it just not implemented yet? Is there some other way the same thing could be done? Ciao, Norbert -- _________________________________________Norbert Nemec Bernhardstr. 2 ... D-93053 Regensburg Tel: 0941 - 2009638 ... Mobil: 0179 - 7475199 eMail: <No...@Ne...> |