desihub / specter

A toolkit for simulating multi-object spectrographs
Other
8 stars 7 forks source link

(new) bug in specter GaussHermitePSF #72

Open julienguy opened 6 years ago

julienguy commented 6 years ago

File "/global/common/software/desi/users/jguy/specter/py/specter/psf/gausshermite.py", line 279, in

_gh
    return self._hermitenorm[m](u) * np.exp(-0.5 * u**2) / np.sqrt(2. * np.pi)

AttributeError: 'GaussHermitePSF' object has no attribute '_hermitenorm'

lastephey commented 6 years ago

Ah, this is my fault. We broke this functionality in our recent pull request to make _pgh faster. I will fix this by updating _gh to use our new custom hermitenorm function.

On Wed, Oct 24, 2018 at 9:01 AM julienguy notifications@github.com wrote:

File "/global/common/software/desi/users/jguy/specter/py/specter/psf/gausshermite.py", line 279, in _gh return self._hermitenormm http://u np.exp(-0.5 u*2) / np.sqrt(2. np.pi) AttributeError: 'GaussHermitePSF' object has no attribute '_hermitenorm'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/desihub/specter/issues/72, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8Y9C_7dJOjrd3Ga8oexnhB3JNo_Y-9ks5uoI7NgaJpZM4X4Qm0 .