Skip to content

Commit

Permalink
bugfix export logfile if n_chunks==1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Jul 13, 2020
1 parent f1d0aa7 commit c29d024
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,7 @@ def process_file(
# unstable with files shorter than 30 minutes, which is why we issue a
# warning. Also, we do not try to detect sensor faults in files shorter than
# 30 minutes.
if n_chunks==1:
has_sensor_fault = False
if export_logfile:
if (n_chunks>1) and export_logfile:
logfile_df = logfile_df.append({
"Start (hh:mm:ss)": seconds_to_hhmmss(chunk_id*chunk_duration),
"Stop (hh:mm:ss)": seconds_to_hhmmss(full_length/sr),
Expand Down

0 comments on commit c29d024

Please sign in to comment.