Skip to content
Snippets Groups Projects
Commit 9e5726d6 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

change

parent efef6ebc
Branches
No related tags found
No related merge requests found
...@@ -34,9 +34,9 @@ def main(entry, arguments, species_list): ...@@ -34,9 +34,9 @@ def main(entry, arguments, species_list):
# Create the list of all possible offset to compute spectrogram # Create the list of all possible offset to compute spectrogram
offset_list = np.arange( offset_list = np.arange(
0, file_duration, arguments.duration - arguments.overlap) 0, file_duration, arguments.duration - arguments.overlap)
new_pos = utils.split_annotations( grp = utils.split_annotations(
grp, arguments.duration) grp, arguments.duration)
grp = pd.merge(grp, new_pos) grp = pd.reset_index(drop=True)
while len(grp) != 0: while len(grp) != 0:
# collect all the data between the offset and duration-overlap # collect all the data between the offset and duration-overlap
if len(offset_list) >= 1: if len(offset_list) >= 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment