{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4576","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4576/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4576/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4576/events","html_url":"https://github.com/astropy/astropy/issues/4576","id":131947736,"number":4576,"title":"InconsistentTableError: Lines in LaTeX table have to end with \\\\","user":{"login":"AMAN3003","id":16108341,"avatar_url":"https://avatars.githubusercontent.com/u/16108341?v=3","gravatar_id":"","url":"https://api.github.com/users/AMAN3003","html_url":"https://github.com/AMAN3003","followers_url":"https://api.github.com/users/AMAN3003/followers","following_url":"https://api.github.com/users/AMAN3003/following{/other_user}","gists_url":"https://api.github.com/users/AMAN3003/gists{/gist_id}","starred_url":"https://api.github.com/users/AMAN3003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMAN3003/subscriptions","organizations_url":"https://api.github.com/users/AMAN3003/orgs","repos_url":"https://api.github.com/users/AMAN3003/repos","events_url":"https://api.github.com/users/AMAN3003/events{/privacy}","received_events_url":"https://api.github.com/users/AMAN3003/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/table","name":"table","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-07T08:00:28Z","updated_at":"2016-02-11T10:57:55Z","closed_at":null,"body":"In refrence solve the previous issue when i tried to run latex file it result in the following issue\r\n Latex reader should accept tables without \\begin/\\end #4295 \r\n\r\n\r\n\r\n from astropy.table import Table\r\n\r\nIn [41]: dat = Table.read('sample.tex', format='latex')\r\n---------------------------------------------------------------------------\r\nInconsistentTableError                    Traceback (most recent call last)\r\n<ipython-input-41-3598203e703f> in <module>()\r\n----> 1 dat = Table.read('sample.tex', format='latex')\r\n\r\n/home/dell/astropy/astropy/table/table.pyc in read(cls, *args, **kwargs)\r\n   2291         passed through to the underlying data reader (e.g. `~astropy.io.ascii.read`).\r\n   2292         \"\"\"\r\n-> 2293         return io_registry.read(cls, *args, **kwargs)\r\n   2294 \r\n   2295     def write(self, *args, **kwargs):\r\n\r\n/home/dell/astropy/astropy/io/registry.pyc in read(cls, *args, **kwargs)\r\n    342 \r\n    343         reader = get_reader(format, cls)\r\n--> 344         data = reader(*args, **kwargs)\r\n    345 \r\n    346         if not isinstance(data, cls):\r\n\r\n/home/dell/astropy/astropy/io/ascii/connect.pyc in io_read(format, filename, **kwargs)\r\n     35     from .ui import read\r\n     36     format = re.sub(r'^ascii\\.', '', format)\r\n---> 37     return read(filename, format=format, **kwargs)\r\n     38 \r\n     39 \r\n\r\n/home/dell/astropy/astropy/io/ascii/ui.pyc in read(table, guess, **kwargs)\r\n    337                                              ' with fast (no guessing)'})\r\n    338         else:\r\n--> 339             dat = reader.read(table)\r\n    340             _read_trace.append({'kwargs': new_kwargs,\r\n    341                                 'status': 'Success with specified Reader class '\r\n\r\n/home/dell/astropy/astropy/io/ascii/core.pyc in read(self, table)\r\n   1043 \r\n   1044         # Get the table column definitions\r\n-> 1045         self.header.get_cols(self.lines)\r\n   1046 \r\n   1047         # Make sure columns are valid\r\n\r\n/home/dell/astropy/astropy/io/ascii/core.pyc in get_cols(self, lines)\r\n    480                 raise ValueError('No header line found in table')\r\n    481 \r\n--> 482             self.names = next(self.splitter([line]))\r\n    483 \r\n    484         self._set_cols_from_names()\r\n\r\n/home/dell/astropy/astropy/io/ascii/core.pyc in __call__(self, lines)\r\n    244         if self.process_line:\r\n    245             lines = (self.process_line(x) for x in lines)\r\n--> 246         for line in lines:\r\n    247             vals = line.split(self.delimiter)\r\n    248             if self.process_val:\r\n\r\n/home/dell/astropy/astropy/io/ascii/core.pyc in <genexpr>((x,))\r\n    243     def __call__(self, lines):\r\n    244         if self.process_line:\r\n--> 245             lines = (self.process_line(x) for x in lines)\r\n    246         for line in lines:\r\n    247             vals = line.split(self.delimiter)\r\n\r\n/home/dell/astropy/astropy/io/ascii/latex.pyc in process_line(self, line)\r\n     88             line = line.strip(r'\\\\')\r\n     89         else:\r\n---> 90             raise core.InconsistentTableError(r'Lines in LaTeX table have to end with \\\\')\r\n     91         return line\r\n     92 \r\n\r\nInconsistentTableError: Lines in LaTeX table have to end with \\\\\r\n\r\nWe must change the code in latex.py read function because its common error when tried to read a latex filr"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/182809645","html_url":"https://github.com/astropy/astropy/issues/4576#issuecomment-182809645","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4576","id":182809645,"user":{"login":"hamogu","id":498688,"avatar_url":"https://avatars.githubusercontent.com/u/498688?v=3","gravatar_id":"","url":"https://api.github.com/users/hamogu","html_url":"https://github.com/hamogu","followers_url":"https://api.github.com/users/hamogu/followers","following_url":"https://api.github.com/users/hamogu/following{/other_user}","gists_url":"https://api.github.com/users/hamogu/gists{/gist_id}","starred_url":"https://api.github.com/users/hamogu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamogu/subscriptions","organizations_url":"https://api.github.com/users/hamogu/orgs","repos_url":"https://api.github.com/users/hamogu/repos","events_url":"https://api.github.com/users/hamogu/events{/privacy}","received_events_url":"https://api.github.com/users/hamogu/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T10:57:54Z","updated_at":"2016-02-11T10:57:54Z","body":"Great! Looking forward to see what you can come up with.\r\n\r\nA word of advice: I suggest that you start with a small step and when that works you wrote tests for it and push it here, so we can see if you are on the right track."}}