Skip to content

Commit

Permalink
bugfix export confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Jan 6, 2019
1 parent 4c796ca commit ceef4c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ def process_file(
# of the input.
chunk_confidences.append(chunk_confidence)
total_length = sum(map(len, chunk_confidences))
f.create_dataset('confidence', (total_length,), dtype="float32")
with h5py.File(confidence_path, "w") as f:
f.create_dataset('confidence', (total_length,), dtype="float32")
chunk_pointer = 0

# Loop over chunks.
Expand Down

0 comments on commit ceef4c3

Please sign in to comment.