Skip to content

Commit

Permalink
Log missing actor id in entry tactic. (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot authored Jul 5, 2023
1 parent f354df8 commit e3ea773
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions smarts/core/id_actor_capture_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def step(self, sim):
if condition_result == ConditionState.EXPIRED:
self._log.warning(
f"Actor aquisition skipped for `{agent_id}` scheduled to start between "
+ f"`Condition `{entry_tactic.condition}` has expired with no vehicle."
+ f"`Condition `{entry_tactic.condition}` has expired with no vehicle. "
+ f"Missing actor: `{entry_tactic.actor_id}`"
)
used_actors.append(actor_id)
sim.agent_manager.teardown_ego_agents({agent_id})
Expand Down Expand Up @@ -121,9 +122,9 @@ def reset(self, scenario, sim):
condition_result = entry_tactic.condition.evaluate(**condition_kwargs)
if condition_result == ConditionState.EXPIRED:
self._log.warning(
f"Actor aquisition skipped for `{agent_id}` scheduled to start with"
f"Actor acquisition skipped for `{agent_id}` scheduled to start with"
+ f"`Condition:{entry_tactic.condition}` because simulation skipped to "
f"`simulation time: {sim.elapsed_sim_time}`"
f"`simulation time: {sim.elapsed_sim_time}`. Missing actor: `{entry_tactic.actor_id}`"
)
cancelled_agents.add(agent_id)
continue
Expand Down

0 comments on commit e3ea773

Please sign in to comment.