{"action":"closed","issue":{"url":"https://api.github.com/repos/mperrin/webbpsf/issues/150","repository_url":"https://api.github.com/repos/mperrin/webbpsf","labels_url":"https://api.github.com/repos/mperrin/webbpsf/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/mperrin/webbpsf/issues/150/comments","events_url":"https://api.github.com/repos/mperrin/webbpsf/issues/150/events","html_url":"https://github.com/mperrin/webbpsf/issues/150","id":187236978,"number":150,"title":"NIRISS auto-pupil attempts to infer wavelength for CLEAR","user":{"login":"josePhoenix","id":172886,"avatar_url":"https://avatars.githubusercontent.com/u/172886?v=3","gravatar_id":"","url":"https://api.github.com/users/josePhoenix","html_url":"https://github.com/josePhoenix","followers_url":"https://api.github.com/users/josePhoenix/followers","following_url":"https://api.github.com/users/josePhoenix/following{/other_user}","gists_url":"https://api.github.com/users/josePhoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/josePhoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josePhoenix/subscriptions","organizations_url":"https://api.github.com/users/josePhoenix/orgs","repos_url":"https://api.github.com/users/josePhoenix/repos","events_url":"https://api.github.com/users/josePhoenix/events{/privacy}","received_events_url":"https://api.github.com/users/josePhoenix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T02:01:59Z","updated_at":"2016-11-04T03:22:25Z","closed_at":"2016-11-04T03:22:25Z","body":"An unanticipated consequence of #64 was that the `filter` setter now fails to guess the wavelength (when `auto_pupil` is enabled). (This was also reported by Kevin Volk.)\r\n\r\n```\r\nIn [1]: %paste\r\nimport webbpsf\r\nniriss = webbpsf.NIRISS()\r\nniriss.filter = 'CLEAR'\r\n\r\n## -- End pasted text --\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-1-98db0a3fdf08> in <module>()\r\n      1 import webbpsf\r\n      2 niriss = webbpsf.NIRISS()\r\n----> 3 niriss.filter = 'CLEAR'\r\n\r\n/Users/jlong/software/webbpsf/webbpsf/webbpsf_core.py in filter(self, value)\r\n   1325\r\n   1326         if self.auto_pupil:\r\n-> 1327             wlnum = int(self.filter[1:4])\r\n   1328             new_pupil_mask = self.pupil_mask # default no change\r\n   1329             if wlnum >= 250:\r\n\r\nValueError: invalid literal for int() with base 10: 'LEA'\r\n```"}}
{"actor":{"display_login":"mperrin"}}