From 9c90168e7f000ace55a4363f8f8fa84928cdede2 Mon Sep 17 00:00:00 2001 From: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com> Date: Fri, 6 Oct 2023 18:18:47 +0900 Subject: [PATCH] Update driving_log_replayer/driving_log_replayer/criteria/perception.py Co-authored-by: Hayato Mizushima --- driving_log_replayer/driving_log_replayer/criteria/perception.py | 1 + 1 file changed, 1 insertion(+) diff --git a/driving_log_replayer/driving_log_replayer/criteria/perception.py b/driving_log_replayer/driving_log_replayer/criteria/perception.py index 3b413c89f..05fb88f20 100644 --- a/driving_log_replayer/driving_log_replayer/criteria/perception.py +++ b/driving_log_replayer/driving_log_replayer/criteria/perception.py @@ -142,6 +142,7 @@ def from_str(cls, value: str) -> Self: CriteriaMode: `CriteriaMode` instance. """ name: str = value.upper() + assert name in cls.__members__, "value must be NUM_TP or METRICS_SCORE" return cls.__members__[name]