Bug fixes and improvements in: detection, audio_loader, and selection_table
This merge request includes the following changes:
-
fixed a bug in the
group_detections
function in the detection module. The bug was causing singular detections to be dropped if they occurred at the end of a batch. -
added a
merge
argument to theprocess
functions in the detection module. Withmerge=True
, the functionmerge_overlapping_detections
is applied to the detections before they are returned. The default value ismerge=False
to ensure backward-compatability. -
added methods for getting file paths and file durations in the AudioFrameLoader and FrameStepper classes.
-
added function in selection_table module for computing aggregate duration of overlapping annotations