MarineBioAcousticsRC / Triton

:whale: Scripps Whale Acoustics Lab :earth_americas: Scripps Acoustic Ecology Lab - Triton with remoras in development
Other
37 stars 27 forks source link

Error in pulling noise sample when no clicks #15

Closed rcohen85 closed 5 years ago

rcohen85 commented 5 years ago

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. image

We could probably just skip all of dt_parameters if no valid detections were found. Here's the fix I put in: image

kfrasier commented 5 years ago

fixed 9/13