Skip to content

Commit 222a257

Browse files
committed
Raises an error if the tracking result is empty
1 parent 11091f0 commit 222a257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctc_metrics/metrics/validation/valid.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def no_empty_tracking_result(
183183
1 if there are detections, 0 otherwise.
184184
"""
185185
is_valid = 1
186-
warnings.warn("No tracks in result.", UserWarning)
187186
if len(tracks) == 0:
187+
warnings.warn("No tracks in result.", UserWarning)
188188
is_valid = 0
189189
return is_valid
190190

0 commit comments

Comments
 (0)