Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes log argument use for demos. #805

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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