project8 / katydid

Project 8 data analysis package
Other
5 stars 4 forks source link

KTSpectrogramCollector crashes when it is sent a spectrum before any tracks #73

Closed evzayas closed 8 years ago

evzayas commented 8 years ago

This is an issue that arises from user error, but if the spectrogram collector is given a spectrum without first being given a track, it will crash. I will implement a fix which simply rejects all spectra if there are no listening tracks.

evzayas commented 8 years ago

I have fixed this and added a warning statement in this case. It's not clear to me why, but it seems this isn't just due to user error; even when the spectrogram collector is fed tracks before it encounters any spectra, sometimes this warning is thrown anyway. (By sometimes, I mean that running the same config on the same build will sometimes throw the warning and sometimes not). It could be a deeper problem with KTSpectrogramCollector, or just an odd thing with the track finding. But in any case the crash is now prevented.