Bug fixes and improvements in: detection, audio_loader, and selection_table
This merge request includes the following changes:
-
fixed a bug in the
group_detectionsfunction in the detection module. The bug was causing singular detections to be dropped if they occurred at the end of a batch. -
added a
mergeargument to theprocessfunctions in the detection module. Withmerge=True, the functionmerge_overlapping_detectionsis applied to the detections before they are returned. The default value ismerge=Falseto 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