Skip to content

Commit 214db9a

Browse files
Apply suggestions from code review
Thank you for polishing the code, you are right! Co-authored-by: Masato Saeki <78376491+MasatoSaeki@users.noreply.github.com>
1 parent a64095d commit 214db9a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

driving_log_replayer_v2/driving_log_replayer_v2/planning_control.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,11 @@ def judge_in_range(self, msg: Pose) -> tuple[bool, dict]:
398398
return False, info_dict
399399

400400
def judge_behavior(self, msg: PlanningFactorMsg) -> tuple[bool, dict]:
401+
behavior = get_planning_factor_behavior_string(msg)
401402
info_dict = {
402-
"Behavior": get_planning_factor_behavior_string(msg),
403+
"Behavior": behavior,
403404
}
404-
return get_planning_factor_behavior_string(msg) in self.condition.behavior, info_dict
405+
return behavior in self.condition.behavior, info_dict
405406

406407

407408
class FactorsClassContainer:

0 commit comments

Comments
 (0)