kitzeslab / opensoundscape

Open source, scalable software for the analysis of bioacoustic recordings
http://opensoundscape.org
MIT License
126 stars 14 forks source link

resolves Many overlap_fractions don't produce results #945 #996

Closed sammlapp closed 1 month ago

sammlapp commented 1 month ago

three changes: (1) AudioSample.from_series rounds duration by default to avoid floating point precision errors in subtracting end-start (2) AudioPreprocessor includes trimming and extending audio to expected duration by default (3) generate_clip_times_df rounds starts before calculating ends, to preserve sample duration as the difference between the quantities