Skip to content

Commit

Permalink
if has_context and (n_chunks>1):
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Dec 5, 2018
1 parent e24652e commit d9edbfd
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 @@ -133,7 +133,7 @@ def process_file(
deque.append(chunk_pcen)

# Compute context.
if has_context:
if has_context and (n_chunks>1):
concat_deque = np.concatenate(deque, axis=1)
deque_context = np.percentile(concat_deque, percentiles, axis=1)

Expand Down

0 comments on commit d9edbfd

Please sign in to comment.