Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Update driving_log_replayer/driving_log_replayer/criteria/perception.py
Browse files Browse the repository at this point in the history
Co-authored-by: Hayato Mizushima <[email protected]>
  • Loading branch information
ktro2828 and hayato-m126 authored Oct 6, 2023
1 parent 16033bd commit 9c90168
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down

0 comments on commit 9c90168

Please sign in to comment.