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]