From: Francesc A. <fa...@ca...> - 2007-07-13 18:17:31
|
[I'm forwarding this message that the list has rebounded (sending from=20 unsubscribed address?)] =2D------------------------------------------------------------------------= =2D------------------- =46rom: "Alain Fagot" <ala...@fr...> To: pyt...@li... Date: Today 17:37:29 Hi,=20 I don't succeed to find the way how to change a value in a nested table. I tried something like the following code but it returns an error at run time: =A0 =A0 =A0 =A0 =A0 =A0 table.cols.info1.name[2] =3D 'CHANGED_STRING' Traceback (most recent call last): =A0 File "C:\Devt\TAS_HDF5_CCN2\PyExpress-Package\TRY_CCN2\Test_nested\nested-tut_ AF.py", line 68, in ? =A0 =A0 table.cols.info1.name[2] =3D 'CHANGED_STRING' =A0 File "C:\Nika\Tools\Python24\Lib\site-packages\tables\table.py", line 2885, in =A0__setitem__ =A0 =A0 [[value]], names=3D[self.pathname]) =A0 File "C:\Nika\Tools\Python24\Lib\site-packages\tables\table.py", line 1964, in =A0modifyColumns =A0 =A0 mod_recarr[name] =3D recarray[name] ValueError: field named name not found. Hi attached the little program to the email. Kind Regards, =A0 =A0 =A0 =A0 =A0 =A0 Alain |