From a4a5522727fb862706dcda1ce8f75dc35afc9da7 Mon Sep 17 00:00:00 2001 From: olivier Date: Thu, 6 Jul 2023 14:30:23 +0100 Subject: [PATCH] hotfix passive: do not enter interactive mode if append - passive fix --- iblrig/base_tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iblrig/base_tasks.py b/iblrig/base_tasks.py index 66b5a4a4e..d631d5e59 100644 --- a/iblrig/base_tasks.py +++ b/iblrig/base_tasks.py @@ -62,11 +62,11 @@ def __init__(self, subject=None, task_parameter_file=None, file_hardware_setting :param projects: An optional list of Alyx protocols. :param procedures: An optional list of Alyx procedures. :param stub: A full path to an experiment description file containing experiment information. - :param append: Path to an existing session to chain a new protocol to + :param append: bool, if True, append to the latest existing session of the same subject for the same day :param fmake: (DEPRECATED) if True, only create the raw_behavior_data folder. """ assert self.protocol_name is not None, "Protocol name must be defined by the child class" - self.interactive = interactive + self.interactive = False if append else interactive self._one = one self.init_datetime = datetime.datetime.now() # Create the folder architecture and get the paths property updated @@ -775,7 +775,7 @@ def valve_open(self, reward_valve_time): state_change_conditions={"Tup": "exit"}, ) self.bpod.send_state_machine(sma) - self.run_state_machine(sma) # Locks until state machine 'exit' is reached + self.bpod.run_state_machine(sma) # Locks until state machine 'exit' is reached return self.bpod.session.current_trial.export()