icecube / skyllh

https://icecube.github.io/skyllh/
GNU General Public License v3.0
11 stars 5 forks source link

Class property `idxs` will only exists in particular runtime cases #99

Closed martwo closed 2 years ago

martwo commented 2 years ago

The idxs property of the TrialDataManager will only exists when an event selection method is used. But the gaussian signal PDF class accesses this property always which will trigger a NameError. The idxs property should probably be a real property. https://github.com/icecube/skyllh/blob/aebfbcbf6c25598bb68062cbee6f20fbe19c60d5/skyllh/core/trialdata.py#L555