{"action":"closed","issue":{"url":"https://api.github.com/repos/aburgasser/splat/issues/115","repository_url":"https://api.github.com/repos/aburgasser/splat","labels_url":"https://api.github.com/repos/aburgasser/splat/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/aburgasser/splat/issues/115/comments","events_url":"https://api.github.com/repos/aburgasser/splat/issues/115/events","html_url":"https://github.com/aburgasser/splat/issues/115","id":294961706,"number":115,"title":"classifyByStandard OSError: Empty or corrupt FITS file","user":{"login":"daniellabardalezgagliuffi","id":8647694,"avatar_url":"https://avatars2.githubusercontent.com/u/8647694?v=4","gravatar_id":"","url":"https://api.github.com/users/daniellabardalezgagliuffi","html_url":"https://github.com/daniellabardalezgagliuffi","followers_url":"https://api.github.com/users/daniellabardalezgagliuffi/followers","following_url":"https://api.github.com/users/daniellabardalezgagliuffi/following{/other_user}","gists_url":"https://api.github.com/users/daniellabardalezgagliuffi/gists{/gist_id}","starred_url":"https://api.github.com/users/daniellabardalezgagliuffi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniellabardalezgagliuffi/subscriptions","organizations_url":"https://api.github.com/users/daniellabardalezgagliuffi/orgs","repos_url":"https://api.github.com/users/daniellabardalezgagliuffi/repos","events_url":"https://api.github.com/users/daniellabardalezgagliuffi/events{/privacy}","received_events_url":"https://api.github.com/users/daniellabardalezgagliuffi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-07T00:22:48Z","updated_at":"2018-02-08T21:44:46Z","closed_at":"2018-02-08T21:44:45Z","author_association":"COLLABORATOR","body":"sp = splat.getSpectrum(lucky=True)\r\n\r\nRetrieving 1 lucky file\r\n\r\nsplat.classifyByStandard(sp)\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-43-181f51b884c4>\", line 1, in <module>\r\n    splat.classifyByStandard(sp)\r\n\r\n  File \"/Users/daniella/Python/splat/splat/core.py\", line 4543, in classifyByStandard\r\n    initiateStandards()\r\n\r\n  File \"/Users/daniella/Python/splat/splat/core.py\", line 2984, in initiateStandards\r\n    stds[t] = Spectrum(kys[t])\r\n\r\n  File \"/Users/daniella/Python/splat/splat/core.py\", line 253, in __init__\r\n    rs = readSpectrum(self.filename,**mkwargs)\r\n\r\n  File \"/Users/daniella/Python/splat/splat/core.py\", line 3766, in readSpectrum\r\n    with fits.open(os.path.normpath(file),ignore_missing_end=True) as data:\r\n\r\n  File \"/anaconda/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py\", line 160, in fitsopen\r\n    lazy_load_hdus, **kwargs)\r\n\r\n  File \"/anaconda/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py\", line 413, in fromfile\r\n    lazy_load_hdus=lazy_load_hdus, **kwargs)\r\n\r\n  File \"/anaconda/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py\", line 1032, in _readfrom\r\n    raise IOError('Empty or corrupt FITS file')\r\n\r\nOSError: Empty or corrupt FITS file"}}
{"actor":{"display_login":"aburgasser"}}