Skip to content

Commit

Permalink
fix profiling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lyie28 committed Sep 6, 2024
1 parent b343013 commit 052c363
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lavague-core/lavague/core/utilities/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def time_profiler(
if full_step_profiling:
agent_steps.append(record)
else:
if len(agent_events) == 0:
start_new_step()
agent_events[-1].append(record)


Expand Down

0 comments on commit 052c363

Please sign in to comment.