Re: [Pytables-users] Rank problems when Appending to EArray

2008-05-22 Thread Francesc Altet
A Wednesday 21 May 2008, Glenn escrigué: > Hello, > I am using an EArray constructed as follows: > fh.createEArray(grp,'normI',Float32Atom(),(0,512)) > > When I try to append to it a numpy array with dimensions (512,), I > get a rank mismatch error unless I first wrap the array as follows: > np.arr

[Pytables-users] Rank problems when Appending to EArray

2008-05-21 Thread Glenn
Hello, I am using an EArray constructed as follows: fh.createEArray(grp,'normI',Float32Atom(),(0,512)) When I try to append to it a numpy array with dimensions (512,), I get a rank mismatch error unless I first wrap the array as follows: np.array(np.zeros((512,0)),ndmin=2) Is there anyway around h