From f10e12e51f32b94359b219e1af2afe3fed4db64d Mon Sep 17 00:00:00 2001 From: lparolari Date: Tue, 11 Jun 2024 13:35:49 +0200 Subject: [PATCH] Fixing missing tracker in tracker exception --- vot/experiment/__init__.py | 2 +- vot/tracker/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vot/experiment/__init__.py b/vot/experiment/__init__.py index 382799b..c1dcb36 100644 --- a/vot/experiment/__init__.py +++ b/vot/experiment/__init__.py @@ -188,7 +188,7 @@ def _get_runtime(self, tracker: "Tracker", sequence: "Sequence", multiobject=Fal if multiobject: if not runtime.multiobject: - raise TrackerException("Tracker {} does not support multi-object experiments".format(tracker.identifier)) + raise TrackerException("Tracker {} does not support multi-object experiments".format(tracker.identifier), tracker=tracker) #runtime = MultiObjectTrackerRuntime(runtime) else: runtime = SingleObjectTrackerRuntime(runtime) diff --git a/vot/tracker/__init__.py b/vot/tracker/__init__.py index 3f47fd4..c4fb217 100644 --- a/vot/tracker/__init__.py +++ b/vot/tracker/__init__.py @@ -898,7 +898,7 @@ def update(self, frame: Frame, new: Objects = None, properties: dict = None) -> Tuple[Objects, float] -- The updated objects and the time it took to update the tracker. """ - if not new is None: raise TrackerException("Only supports single object tracking") + if not new is None: raise TrackerException("Only supports single object tracking", tracker=self.tracker) status = self._runtime.update(frame, new, properties) if isinstance(status, list): status = status[0] return status