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'

Thanks,
-Ken

------------------------------------------------------------------------------
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to