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 wrote: > 2013/8/27 Anthony Scopatz > >> >> 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") >>

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Oleksandr Huziy
2013/8/27 Anthony Scopatz > > 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 = varTable.

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Anthony Scopatz
On Tue, Aug 27, 2013 at 6:50 PM, Oleksandr Huziy wrote: > Hi Again: > > > 2013/8/27 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/usersg

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Oleksandr Huziy
Hi Again: 2013/8/27 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 > I just wanted to make sure if it is possi

Re: [Pytables-users] modifying a table column

2013-08-27 Thread Oleksandr Huziy
Thank you Anthony. Cheers 2013/8/27 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 a

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 wrote: > Hi All: > > I have a huge table import