mperrin / webbpsf

James Webb Space Telescope PSF simulation tool - NOTE THIS VERSION OF REPO IS SUPERCEDED BY spacetelescope/webbpsf
BSD 3-Clause "New" or "Revised" License
16 stars 15 forks source link

rationalize SpaceTelescopeInstrument.calcPSF with poppy.Instrument.calc_psf #132

Closed mperrin closed 7 years ago

mperrin commented 7 years ago

This got overlooked in the API updating. Whoops...

See https://github.com/mperrin/poppy/issues/180#issuecomment-249695186 :

just realized to my horror that when we updated the API for calcPSF->calc_psf we never updated SpaceTelescopeInstrument. So I've been doing all my testing lately calling calc_psf which was just calling the parent Instrument.calc_psf. It turns out that has been working fine - so I'm now confused and can't remember why we overrode that function in SpaceTelescopeInstrument.

mperrin commented 7 years ago

After fixing a trivial typo in a warning string in poppy.Instrument, it seems that most webbpsf tests are passing with calls to Instrument.calc_psf instead of SpaceTelescopeInstrument.calcPSF (hereafter STI.calcPSF for brevity).

What's different between those two functions?

None of those seem sufficient to justify separate functions at this point. I think this is pretty much just vestigial code and we can & should simplify it down to just one function.

mperrin commented 7 years ago

Fixed (in the si_wfe branch for now, will merge later to master.