Skip to content

Commit

Permalink
Merge pull request #39 from BirdVox/fix-34
Browse files Browse the repository at this point in the history
bugfix has_sensor_fault referenced before assignment
  • Loading branch information
Vincent Lostanlen authored Feb 13, 2020
2 parents 7469836 + 2da20f5 commit e4467a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,15 @@ def process_file(
"Ignoring segment between 00:00:00 and " +\
context_duration_str + " (" + str(chunk_id_start) +\
" chunks)")
has_sensor_fault = True
# If continuous confidence is required, store it in memory.
if export_confidence:
chunk_confidence = np.full(
int(chunk_id_start * chunk_duration * frame_rate), np.nan)
chunk_confidences.append(chunk_confidence)
else:
chunk_id_start = 0
has_sensor_fault = False
else:
chunk_id_start = 0
has_sensor_fault = False
Expand Down

0 comments on commit e4467a6

Please sign in to comment.