From c26c56cb47a7ee055817862ee1ac3b24c72cb002 Mon Sep 17 00:00:00 2001 From: Franco Cipollone Date: Mon, 13 Sep 2021 16:29:27 -0300 Subject: [PATCH] Fixes log argument use for demos. --- python/delphyne/trees.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/delphyne/trees.py b/python/delphyne/trees.py index 9513373fa..6890cf186 100644 --- a/python/delphyne/trees.py +++ b/python/delphyne/trees.py @@ -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 @@ -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 )