In the spice-snr-threshold branch, in dt_parameters line 39 when there are no valid detections passed in (variable "clicks" is empty) then there are no indices to indicate a chunk of samples prior to any detections which could be saved as a noise sample.
We could probably just skip all of dt_parameters if no valid detections were found. Here's the fix I put in:
In the spice-snr-threshold branch, in dt_parameters line 39 when there are no valid detections passed in (variable "clicks" is empty) then there are no indices to indicate a chunk of samples prior to any detections which could be saved as a noise sample.
We could probably just skip all of dt_parameters if no valid detections were found. Here's the fix I put in: