{"action":"closed","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4335","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4335/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4335/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4335/events","html_url":"https://github.com/astropy/astropy/issues/4335","id":118277472,"number":4335,"title":"Using an ascii reader object to read a table raises an exception, but using ascii.read on the same table doesn't","user":{"login":"waltervrossem","id":8248294,"avatar_url":"https://avatars.githubusercontent.com/u/8248294?v=3","gravatar_id":"","url":"https://api.github.com/users/waltervrossem","html_url":"https://github.com/waltervrossem","followers_url":"https://api.github.com/users/waltervrossem/followers","following_url":"https://api.github.com/users/waltervrossem/following{/other_user}","gists_url":"https://api.github.com/users/waltervrossem/gists{/gist_id}","starred_url":"https://api.github.com/users/waltervrossem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waltervrossem/subscriptions","organizations_url":"https://api.github.com/users/waltervrossem/orgs","repos_url":"https://api.github.com/users/waltervrossem/repos","events_url":"https://api.github.com/users/waltervrossem/events{/privacy}","received_events_url":"https://api.github.com/users/waltervrossem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/io.ascii","name":"io.ascii","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-22T17:55:06Z","updated_at":"2015-11-24T21:16:24Z","closed_at":"2015-11-24T21:16:24Z","body":"astropy 1.0.3\r\nnumpy 1.9.2\r\npython 2.7.10\r\n\r\nAs the title states, using an ascii.get_reader object to read a table raises an exception, but reading the same table using ascii.read doesn't.\r\n\r\nUsing this data http://cdsarc.u-strasbg.fr/viz-bin/Cat?J/ApJS/207/10\r\n\r\nThe following code runs without an exception, but I also need the column descriptions in the ReadMe file. \r\n```\r\ntable=ascii.read('table2.dat', format='cds', readme='ReadMe')\r\n```\r\nWhen running the following code:\r\n\r\n```\r\nreader = ascii.get_reader(ascii.Cds, readme=readme)\r\ntable = reader.read(\"table2.dat\")\r\n```\r\nThe following exception is raised.\r\n```\r\n<ipython-input-52-20216f3215db> in <module>()\r\n      1 reader = ascii.get_reader(ascii.Cds, readme=readme)\r\n----> 2 t = reader.read('table2.dat')\r\n\r\nC:\\Python27\\lib\\site-packages\\astropy\\io\\ascii\\cds.pyc in read(self, table)\r\n    319                     return table\r\n    320         else:\r\n--> 321             return super(Cds, self).read(table)\r\n\r\nC:\\Python27\\lib\\site-packages\\astropy\\io\\ascii\\core.pyc in read(self, table)\r\n   1074 \r\n   1075         self.data.masks(cols)\r\n-> 1076         table = self.outputter(cols, self.meta)\r\n   1077         if hasattr(self.header, 'table_meta'):\r\n   1078             table.meta.update(self.header.table_meta)\r\n\r\nC:\\Python27\\lib\\site-packages\\astropy\\io\\ascii\\core.pyc in __call__(self, cols, meta)\r\n    866 \r\n    867     def __call__(self, cols, meta):\r\n--> 868         self._convert_vals(cols)\r\n    869 \r\n    870         # If there are any values that were filled and tagged with a mask bit then this\r\n\r\nC:\\Python27\\lib\\site-packages\\astropy\\io\\ascii\\core.pyc in _convert_vals(self, cols)\r\n    853                     col.converters.insert(0, convert_numpy(numpy.str))\r\n    854                 except IndexError:\r\n--> 855                     raise ValueError('Column %s failed to convert' % col.name)\r\n    856 \r\n    857 \r\n\r\nValueError: Column RANh failed to convert\r\n```\r\n"}}