{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/5258","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/5258/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5258/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/5258/events","html_url":"https://github.com/astropy/astropy/issues/5258","id":172831452,"number":5258,"title":"converting VO table to a fits file: raise ValueError('Illegal format %s.' % format) ValueError: Illegal format object.","user":{"login":"richardgmcmahon","id":2388403,"avatar_url":"https://avatars.githubusercontent.com/u/2388403?v=3","gravatar_id":"","url":"https://api.github.com/users/richardgmcmahon","html_url":"https://github.com/richardgmcmahon","followers_url":"https://api.github.com/users/richardgmcmahon/followers","following_url":"https://api.github.com/users/richardgmcmahon/following{/other_user}","gists_url":"https://api.github.com/users/richardgmcmahon/gists{/gist_id}","starred_url":"https://api.github.com/users/richardgmcmahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardgmcmahon/subscriptions","organizations_url":"https://api.github.com/users/richardgmcmahon/orgs","repos_url":"https://api.github.com/users/richardgmcmahon/repos","events_url":"https://api.github.com/users/richardgmcmahon/events{/privacy}","received_events_url":"https://api.github.com/users/richardgmcmahon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/io.fits","name":"io.fits","color":"c7def8"},{"url":"https://api.github.com/repos/astropy/astropy/labels/io.votable","name":"io.votable","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-23T23:31:40Z","updated_at":"2016-08-30T14:15:03Z","closed_at":null,"body":"I have a VO table from the Gaia archive that I want to convert to fits format. \r\n\r\nThe vot format file is valid and has a column attribute format which have value %r. There is a mixture of 32 and 64 bit floating point numbers, bool, strings, ints.\r\n\r\nWhen I try to write a fits file I get the error.\r\n\r\n   raise ValueError('Illegal format %s.' % format)\r\nValueError: Illegal format object.\r\n\r\nA simple fix would be to remove/delete  the vot column attribute format. Is this possible? If yes, how do I do it? It is not obvious to me from the docs.\r\n\r\nAlternatively is there a valid way to convert prior to writing the fits file since this might be useful too although removal would meet my needs and that is what topcat seems to do.\r\n\r\nI can look into the conversion based on TFORM is described here: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/quick/node10.html "},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/243453014","html_url":"https://github.com/astropy/astropy/issues/5258#issuecomment-243453014","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5258","id":243453014,"user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T14:15:03Z","updated_at":"2016-08-30T14:15:03Z","body":"So, it's actually bad data and not a bug in the codes?"}}
{"actor":{"display_login":"pllim"}}