{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astroquery/issues/641","labels_url":"https://api.github.com/repos/astropy/astroquery/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astroquery/issues/641/comments","events_url":"https://api.github.com/repos/astropy/astroquery/issues/641/events","html_url":"https://github.com/astropy/astroquery/pull/641","id":126785440,"number":641,"title":"Xmatch: allow astropy tables input iwht more than 2 columns","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-15T01:12:54Z","updated_at":"2016-01-15T14:53:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astropy/astroquery/pulls/641","html_url":"https://github.com/astropy/astroquery/pull/641","diff_url":"https://github.com/astropy/astroquery/pull/641.diff","patch_url":"https://github.com/astropy/astroquery/pull/641.patch"},"body":"    Before this patch astropy tables as input could only have exactly\r\n    two columns that would be exactly in the order RA, DEC. That is a bad\r\n    design for two reasons:\r\n    - What is the order of the columns is different.\r\n    - After cross-matching, how do I know which object is which?\r\n      Two RA/DEC columns are fine if I want to answer the question\r\n      \"What are the counterparts in catalog 2?\" but not if I want\r\n      to retrieve a joint catalog (e.g. I have my own optical data\r\n      in cat1 and cross-match with 2MASS, then I want all mags in the\r\n      returned catalog).\r\n"},"comment":{"url":"https://api.github.com/repos/astropy/astroquery/issues/comments/171981079","html_url":"https://github.com/astropy/astroquery/pull/641#issuecomment-171981079","issue_url":"https://api.github.com/repos/astropy/astroquery/issues/641","id":171981079,"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-01-15T14:53:54Z","updated_at":"2016-01-15T14:53:54Z","body":"It turn out that the first line of the docstring has to be empty, because that is how the decorator determines the number of white spaces to strip, i.e.\r\n```\r\ndef func():\r\n    '''\r\n    This is a function that does ...\r\n\r\n    Returns\r\n    -----------\r\n    stuff : \r\n'''\r\n```\r\ninstead of the usual numpydoc format.\r\n```\r\ndef func():\r\n    '''one line summary of function\r\n\r\n    Longer text that describes function in detail.\r\n\r\n    Returns\r\n    -----------\r\n    stuff : \r\n'''\r\n```\r\nI'll open an issue for that, but for now I've fixed it."}}