Hi all,

I'm having trouble updating pytables rows.  Say I have a H5 table
"h5t" with several rows.  According to the manual, it seems I should
be able to call

h5t[1]['number'] = 3

and the table will set the 'number' record of row 1  to 3 and
implicitly call row.update.  However, the table/row does not update,
and h5t[1]['number'] returns 0 (or whatever the initial value was).

Regardless, calling

rec = h5t[1]
rec['number'] = 3
h5t[1] = [rec]

seems to force the table to update, and now h5t[1]['number'] returns
the new value.

Am I missing something?  My workaround seems a bit silly, and it's
probably not guaranteed to work.  I'm aware of row.update(), but I
don't see any way to call it for a specific table index
(h5t[1].update(), for example).

-Ben

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to