From: Luca D. S. <dsa...@fa...> - 2008-01-08 08:56:05
|
On Mon, 2008-01-07 at 13:32 +0100, Francesc Altet wrote: > mytable.cols._f_col(mytable.colnames[2])[1] = 5 > > BTW, a Table.flush() is only needed when you append/modify the Table > using an iterator, so you don't need to issue it in this case. > > Ciao, > Thank you very much Ivan and Francesc, I've been able to rapidly solve the problem with your help. I've chosen the last approach you suggested me since in my application it's easier to retrieve the column index instead of the name. So the approaches that require hardcoding of natural column naming inside python instructions are a second choice in my case compared to those where I can directly use the column index or indirectly convert the column index to name (even thought I find natural naming approach very useful when working on the interactive python console). Sincerely. Luca Della Santina University of Pisa Dept. of Human Physiology via S.Zeno 31 56100 Pisa - Italy |