{"action":"created","issue":{"url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/18","repository_url":"https://api.github.com/repos/spacetelescope/STScI-STIPS","labels_url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/18/comments","events_url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/18/events","html_url":"https://github.com/spacetelescope/STScI-STIPS/issues/18","id":363347510,"node_id":"MDU6SXNzdWUzNjMzNDc1MTA=","number":18,"title":"Installation of latest version does not run because of poppy compatibility problem","user":{"login":"benw1","id":8866546,"node_id":"MDQ6VXNlcjg4NjY1NDY=","avatar_url":"https://avatars2.githubusercontent.com/u/8866546?v=4","gravatar_id":"","url":"https://api.github.com/users/benw1","html_url":"https://github.com/benw1","followers_url":"https://api.github.com/users/benw1/followers","following_url":"https://api.github.com/users/benw1/following{/other_user}","gists_url":"https://api.github.com/users/benw1/gists{/gist_id}","starred_url":"https://api.github.com/users/benw1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benw1/subscriptions","organizations_url":"https://api.github.com/users/benw1/orgs","repos_url":"https://api.github.com/users/benw1/repos","events_url":"https://api.github.com/users/benw1/events{/privacy}","received_events_url":"https://api.github.com/users/benw1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2018-09-24T22:45:00Z","updated_at":"2018-10-16T18:35:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"Although I still do not see installation documentation, I followed the installation instructions at the end of Issue #2 . \r\n\r\nconda create -n forSTIPS python=2.7.12 astropy=1.3.2 numpy=1.12.1 scipy=0.18.1 photutils=0.3.2 pysynphot=0.9.8.5 webbpsf=0.6\r\nsource activate forSTIPS\r\necho $WEBBPSF_PATH\r\nexport PYSYN_CDBS=\"/local/tmp/Work/bin/grp/hst/cdbs\"\r\npip install \"esutil==0.6.0\"\r\npip install \"montage-wrapper==0.9.9\"\r\npip install \"jwst_backgrounds==1.1.1\"\r\npip install \"pandeia.engine==1.0\"\r\nexport pandeia_refdata=\"/local/tmp/Work/bin/pandeia_data-1.0\"\r\ncd /local/tmp/Work\r\ngit clone https://github.com/spacetelescope/STScI-STIPS-UI.git\r\nexport stips_data=\"/local/tmp/Work/STScI-STIPS-UI/sim_input/stips_data\"\r\ngit clone https://github.com/spacetelescope/STScI-STIPS.git\r\ncd STScI-STIPS\r\npython setup.py install\r\n\r\nI am using straight copies of pandeia_data-1.0 and cdbs from earlier versions, but the stips data is from the clone of  https://github.com/spacetelescope/STScI-STIPS-UI.git\r\nThe install completes without error, but If I attempt to generate an observation, there is a compatability error with poppy. The current master and bugfix branches both result in the following error when attempting to run:\r\n\r\nfrom stips.observation_module import ObservationModule\r\nobs = {'instrument': 'WFI', 'filters': ['H158'], 'detectors': 1, 'distortion': False, 'oversample': 10, 'pupil_mask': '', 'background': 'avg', 'observations_id': 1, 'exptime': 10000, 'offsets': [{'offset_id': 1, 'offset_centre': False, 'offset_ra': 0.5, 'offset_dec': 0.0, 'offset_pa': 27.0}]}\r\nscene_general = {'ra': 254.56583104, 'dec': 24.10779887, 'pa': 0.0, 'seed': 1234}\r\nobm = ObservationModule(obs, scene_general=scene_general)\r\nobm.nextObservation()\r\n2018-09-24 15:43:40,042 INFO: Initializing Observation 0 of 1 [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/observation_module/observation_module.py:300]\r\n2018-09-24 15:43:40,042 INFO: Observation Filter is H158 [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/observation_module/observation_module.py:300]\r\n2018-09-24 15:43:40,042 INFO: Observation (RA,DEC) = (254.565970,24.107799) with PA=27.000000 [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/observation_module/observation_module.py:300]\r\n2018-09-24 15:43:40,043 INFO: Resetting [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/instruments/instrument.py:926]\r\n2018-09-24 15:43:43,110 INFO: PSF choosing between 215, 40960, and 204 [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/instruments/instrument.py:926]\r\n2018-09-24 15:43:43,112 INFO: No source spectrum supplied, therefore defaulting to 5700 K blackbody [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/poppy/instrument.py:825]\r\n2018-09-24 15:43:43,112 INFO: Computing wavelength weights using synthetic photometry for H158... [in /local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/poppy/instrument.py:836]\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/observation_module/observation_module.py\", line 176, in nextObservation\r\n    self.instrument.reset(ra, dec, pa, filter, self.obs_count)\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/instruments/instrument.py\", line 127, in reset\r\n    self.resetPSF()\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/stips-1.0.0rc6-py2.7.egg/stips/instruments/wfi.py\", line 63, in resetPSF\r\n    psf = ins.calcPSF(oversample=self.oversample,fov_pixels=min(max_safe_size, max_ins_size, max_conv_size))\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/poppy/instrument.py\", line 251, in calc_psf\r\n    monochromatic=local_options['monochromatic'])\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/poppy/instrument.py\", line 837, in _get_weights\r\n    band = self._get_synphot_bandpass(self.filter)\r\n  File \"/local/tmp/miniconda2/envs/forSTIPS/lib/python2.7/site-packages/poppy/instrument.py\", line 752, in _get_synphot_bandpass\r\n    bpname = self._synphot_bandpasses[filtername]\r\nAttributeError: 'WFI' object has no attribute '_synphot_bandpasses'\r\n"},"comment":{"url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/comments/430349084","html_url":"https://github.com/spacetelescope/STScI-STIPS/issues/18#issuecomment-430349084","issue_url":"https://api.github.com/repos/spacetelescope/STScI-STIPS/issues/18","id":430349084,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM0OTA4NA==","user":{"login":"york-stsci","id":5478756,"node_id":"MDQ6VXNlcjU0Nzg3NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/5478756?v=4","gravatar_id":"","url":"https://api.github.com/users/york-stsci","html_url":"https://github.com/york-stsci","followers_url":"https://api.github.com/users/york-stsci/followers","following_url":"https://api.github.com/users/york-stsci/following{/other_user}","gists_url":"https://api.github.com/users/york-stsci/gists{/gist_id}","starred_url":"https://api.github.com/users/york-stsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/york-stsci/subscriptions","organizations_url":"https://api.github.com/users/york-stsci/orgs","repos_url":"https://api.github.com/users/york-stsci/repos","events_url":"https://api.github.com/users/york-stsci/events{/privacy}","received_events_url":"https://api.github.com/users/york-stsci/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T18:35:14Z","updated_at":"2018-10-16T18:35:14Z","author_association":"COLLABORATOR","body":"Thank you. I think I see what's going on, and it has to do with astropy automatically converting from a CD matrix to a PC matrix when writing out co-ordinates to a header, *but* not considering the scale properly (i.e. using CDELT to define the pixel scale, but not letting CDELT values be set after the CD matrix has been set). Take a look at the version I just pushed and see if it produces something more accurate (although it will still have CDELT values set to 1.0 because apparently astropy will always do that when turning a CD matrix into a PC matrix)."}}
{"actor":{"display_login":"york-stsci"}}