A Wednesday 22 July 2009 00:30:58 Kenneth Arnold escrigué: > I think I've hit a bug, but wanted to ask here instead of an > impersonal bugtracker. > > Here I have a PyTables Array: > In [8]: d > Out[8]: > /svals (Array(50,)) '' > atom := Float64Atom(shape=(), dflt=0.0) > maindim := 0 > flavor := 'numpy' > byteorder := 'little' > chunkshape := None > > When I ask for a single item, I get a 0-shaped array: > In [10]: d[0] > Out[10]: array(61.641566231316837) > > But I was expecting numpy's behavior, which is to return a plain number: > In [13]: import numpy as np > In [15]: np.array(d)[0] > Out[15]: 61.641566231316837 > In [17]: np.version.version > Out[17]: '1.2.1'
Yep. I realized about this some months ago, and fixed it: http://pytables.org/trac/ticket/222 Cheers, -- Francesc Alted ------------------------------------------------------------------------------ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users