{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4912","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4912/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4912/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4912/events","html_url":"https://github.com/astropy/astropy/issues/4912","id":154859582,"number":4912,"title":"\"Exception TypeError ... ignored\" when using astropy.io.fits.getdata() in astropy/1.1.2","user":{"login":"weaverba137","id":3780690,"avatar_url":"https://avatars.githubusercontent.com/u/3780690?v=3","gravatar_id":"","url":"https://api.github.com/users/weaverba137","html_url":"https://github.com/weaverba137","followers_url":"https://api.github.com/users/weaverba137/followers","following_url":"https://api.github.com/users/weaverba137/following{/other_user}","gists_url":"https://api.github.com/users/weaverba137/gists{/gist_id}","starred_url":"https://api.github.com/users/weaverba137/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weaverba137/subscriptions","organizations_url":"https://api.github.com/users/weaverba137/orgs","repos_url":"https://api.github.com/users/weaverba137/repos","events_url":"https://api.github.com/users/weaverba137/events{/privacy}","received_events_url":"https://api.github.com/users/weaverba137/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/io.fits","name":"io.fits","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-14T15:32:47Z","updated_at":"2016-05-17T18:31:41Z","closed_at":null,"body":"Data obtained from an `astropy.io.fits.getdata()` call throws an ignored exception when the script is shut down.  For example:\r\n\r\n```\r\nException TypeError: \"'NoneType' object is not callable\" in <bound method FITS_rec.__del__ of FITS_rec([({some data}], dtype=(numpy.record, [{some types that are only integers & floats}]))> ignored\r\n```\r\n\r\nThe immediate cause of the exception being *ignored* [is well known](https://docs.python.org/2/reference/datamodel.html#object.__del__).  The concern is that this appears in 1.1.2 but not 1.1.1, and only for FITS_rec objects returned by `astropy.io.fits.getdata()`.\r\n\r\nIs it possible that #520 or #4539 changed the order in which objects are garbage collected or otherwise deleted such that garbage collection at script shutdown time tries to reference an object that no longer exists?\r\n\r\nFor completeness, this message appears with python/2.7.11, numpy/1.10.4 *or* numpy/1.11.0, astropy/1.1.2.\r\n"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/219810922","html_url":"https://github.com/astropy/astropy/issues/4912#issuecomment-219810922","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4912","id":219810922,"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-05-17T18:31:41Z","updated_at":"2016-05-17T18:31:41Z","body":"@weaverba137 , you can try installing the branch associated with that PR and confirm for yourself, if you wish. If that is indeed the case, I think we can close this?"}}