Skip to content

Commit

Permalink
Merge pull request #38 from BirdVox/last-chunk-empty
Browse files Browse the repository at this point in the history
bugfix concat_deque in last chunk
  • Loading branch information
Vincent Lostanlen authored Feb 13, 2020
2 parents 0409ccf + 875aa5e commit 7469836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def process_file(
# Compute percentiles
deque.popleft()
deque.append(chunk_pcen)
concat_deque = np.concatenate(deque, axis=1, out=concat_deque)
concat_deque = np.concatenate(deque, axis=1)
deque_context = np.percentile(
concat_deque, percentiles,
axis=1, out=deque_context, overwrite_input=True)
Expand Down

0 comments on commit 7469836

Please sign in to comment.