Skip to content

Commit

Permalink
Fixes log argument use for demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
francocipollone committed Sep 13, 2021
1 parent 473772c commit 0becc20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/delphyne/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ def __init__(self, *, root):
super().__init__(root=root)
self.runner = None

def setup(self, realtime_rate, start_paused, time_step=0.01, logfile_name='', **kwargs):
def setup(
self, realtime_rate, start_paused, time_step=0.01, log=False, logfile_name='', **kwargs):
"""
Setup a Delphyne behaviour tree for agent based simulation.
:param realtime_rate:
:param start_paused:
:param time_step:
:param log:
:param logfile_name:
"""
# Bear in mind that this is a local builder. Once the AgentSimulation
Expand All @@ -39,7 +42,7 @@ def setup(self, realtime_rate, start_paused, time_step=0.01, logfile_name='', **
time_step=time_step, # (secs)
realtime_rate=realtime_rate,
paused=start_paused,
log=bool(logfile_name),
log=log,
logfile_name=logfile_name
)

Expand Down

0 comments on commit 0becc20

Please sign in to comment.