astropy/astropy — pull request #1229 by taldcroft (2013-08-14 20:42:32+00:00)
Title: Table row access failure with masked tables

I get this ugly error when trying to index a table:

```
ValueError: Setting void-array with object members using buffer.
```

A complete example, using the freshly completed `astroquery.simbad` module:
```
>>> from astroquery import simbad
>>> T = simbad.Simbad.query_bibobj('2005ApJ...635.1166G')
>>> T[0]
ERROR: ValueError: Setting void-array with object members using buffer. [numpy.ma.core]
Traceback (most recent call last):
File "", line 1, in
T[0]
File "/Users/adam/repos/astropy/astropy/table/table.py", line 1327, in __getitem__
return Row(self, item)
File "/Users/adam/repos/astropy/astropy/table/table.py", line 769, in __init__
self._data = table._data[index]
File "/Users/adam/virtual-python/lib/python2.7/site-packages/numpy/ma/core.py", line 2954, in __getitem__
dout = mvoid(dout, mask=mask)
File "/Users/adam/virtual-python/lib/python2.7/site-packages/numpy/ma/core.py", line 5515, in __new__
_data[()] = data
ValueError: Setting void-array with object members using buffer.
```

I suspect this is actually a numpy error, but I'd like some confirmation before trying to push it upstream.