Re: [Pytables-users] modifying a table column

2013-08-27 Thread Anthony Scopatz
Hey Sasha, You probably want to look at the Expr class [1] where you set out to be the same as the original array. Be Well Anthony 1. http://pytables.github.io/usersguide/libref/expr_class.html On Tue, Aug 27, 2013 at 11:44 AM, Oleksandr Huziy guziy.sa...@gmail.comwrote: Hi All: I have a

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Oleksandr Huziy
Thank you Anthony. Cheers 2013/8/27 Anthony Scopatz scop...@gmail.com Hey Sasha, You probably want to look at the Expr class [1] where you set out to be the same as the original array. Be Well Anthony 1. http://pytables.github.io/usersguide/libref/expr_class.html On Tue, Aug 27,

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Anthony Scopatz
On Tue, Aug 27, 2013 at 6:50 PM, Oleksandr Huziy guziy.sa...@gmail.comwrote: Hi Again: 2013/8/27 Anthony Scopatz scop...@gmail.com Hey Sasha, You probably want to look at the Expr class [1] where you set out to be the same as the original array. Be Well Anthony 1.

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Oleksandr Huziy
2013/8/27 Anthony Scopatz scop...@gmail.com You are right that this loads the entire computed array into memory and is therefore not optimal. I would do something like the following: h = tb.open_file(path, mode=a) varTable = h.get_node(/, var_name) coef = 3 * 60 * 60 #output step c =

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Anthony Scopatz
Glad I could help! On Tue, Aug 27, 2013 at 7:44 PM, Oleksandr Huziy guziy.sa...@gmail.comwrote: 2013/8/27 Anthony Scopatz scop...@gmail.com You are right that this loads the entire computed array into memory and is therefore not optimal. I would do something like the following: h =