Skip to content

Commit

Permalink
Revert support for newest numpy versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccarrizosa committed Nov 10, 2024
1 parent 68351d2 commit 2d8a7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batdetect2/utils/detector_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def format_single_result(
)
class_name = class_names[np.argmax(class_overall)]
annotations = get_annotations_from_preds(predictions, class_names)
except (np.exceptions.AxisError, ValueError):
except (np.AxisError, ValueError):
# No detections
class_overall = np.zeros(len(class_names))
class_name = "None"
Expand Down

0 comments on commit 2d8a7b6

Please sign in to comment.