Skip to content

Commit

Permalink
if consistent_pred_dict is None:
Browse files Browse the repository at this point in the history
  • Loading branch information
lostanlen committed Jul 12, 2021
1 parent 46b4b24 commit dbc4284
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions birdvoxdetect/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def process_file(
consistent_pred_dict, json_dict = classify_species(
classifier, chunk_pcen, th_peak_loc, taxonomy
)
if row is None:
if consistent_pred_dict is None:
none_peak_ids.append(peak_id)
continue
rows.append(
Expand Down Expand Up @@ -689,7 +689,7 @@ def process_file(
consistent_pred_dict, json_dict = classify_species(
classifier, chunk_pcen, th_peak_loc, taxonomy
)
if row is None:
if consistent_pred_dict is None:
none_peak_ids.append(peak_id)
continue
rows.append(
Expand Down Expand Up @@ -942,7 +942,7 @@ def process_file(
consistent_pred_dict, json_dict = classify_species(
classifier, chunk_pcen, th_peak_loc, taxonomy
)
if row is None:
if consistent_pred_dict is None:
none_peak_ids.append(peak_id)
continue
rows.append(
Expand Down

0 comments on commit dbc4284

Please sign in to comment.