{"action":"created","issue":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/250","labels_url":"https://api.github.com/repos/ejeschke/ginga/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/ejeschke/ginga/issues/250/comments","events_url":"https://api.github.com/repos/ejeschke/ginga/issues/250/events","html_url":"https://github.com/ejeschke/ginga/issues/250","id":121562124,"number":250,"title":"AstropyWCS pixtocoords incompatible with Astropy 1.1RC2?","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-10T19:41:20Z","updated_at":"2015-12-10T20:02:57Z","closed_at":null,"body":"I have Astropy 1.1RC2 and the latest dev Ginga. I get traceback about `frameClass` when I load some of my images. I do not remember getting this before using the same image. Here is my manual attempt to recreate the traceback:\r\n\r\n```python\r\n>>> import logging\r\n>>> from astropy import coordinates\r\n>>> from astropy.io import fits\r\n>>> from ginga.util import wcsmod\r\n>>> logger = logging.getLogger()\r\n>>> filename = 'ergS20071007S0122.fits'\r\n>>> header = fits.getheader('ergS20071007S0122.fits', 2)\r\n>>> wcsmod.use('astropy')  # Not astropy2!\r\n>>> mywcs = wcsmod.WCS(logger)\r\n>>> mywcs.load_header(header)\r\n>>> mywcs.wcs\r\nWCS Keywords\r\n\r\nNumber of WCS axes: 2\r\nCTYPE : 'LINEAR'  'LINEAR'  \r\nCRVAL : 5750.8999999999996  1.0  \r\nCRPIX : 1109.0  1.0  \r\nCD1_1 CD1_2  : -0.46354405531176002  0.0  \r\nCD2_1 CD2_2  : 0.0  1.0  \r\n\r\n>>> mywcs.pixtoradec([0, 1])\r\n(6264.506813285429, 2.0)\r\n>>> mywcs.pixtocoords([0, 1])\r\n.../ginga-2.5.20151208223618-py2.7.egg/ginga/util/wcsmod.pyc in pixtocoords(self, idxs, system, coords)\r\n    595         else:\r\n    596             frameClass = coordinates.frame_transform_graph.lookup_name(self.coordsys)\r\n--> 597             coord = frameClass(ra_deg * units.degree, dec_deg * units.degree)\r\n    598             toClass = coordinates.frame_transform_graph.lookup_name(system)\r\n    599             # Skip in input and output is the same (no realize_frame\r\n\r\nTypeError: 'NoneType' object is not callable\r\n\r\n>>> mywcs.coordsys\r\n'pixel'\r\n>>> coordinates.frame_transform_graph.lookup_name(mywcs.coordsys)\r\n\r\n>>>\r\n```\r\n\r\nSomewhat related to #113 ?"},"comment":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/comments/163734750","html_url":"https://github.com/ejeschke/ginga/issues/250#issuecomment-163734750","issue_url":"https://api.github.com/repos/ejeschke/ginga/issues/250","id":163734750,"user":{"login":"ejeschke","id":1305473,"avatar_url":"https://avatars.githubusercontent.com/u/1305473?v=3","gravatar_id":"","url":"https://api.github.com/users/ejeschke","html_url":"https://github.com/ejeschke","followers_url":"https://api.github.com/users/ejeschke/followers","following_url":"https://api.github.com/users/ejeschke/following{/other_user}","gists_url":"https://api.github.com/users/ejeschke/gists{/gist_id}","starred_url":"https://api.github.com/users/ejeschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejeschke/subscriptions","organizations_url":"https://api.github.com/users/ejeschke/orgs","repos_url":"https://api.github.com/users/ejeschke/repos","events_url":"https://api.github.com/users/ejeschke/events{/privacy}","received_events_url":"https://api.github.com/users/ejeschke/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T20:02:56Z","updated_at":"2015-12-10T20:02:56Z","body":"@pllim, did you try to build a valid astropy WCS from the command line with this image?"}}