Skip to content

Commit

Permalink
hotfix passive: do not enter interactive mode if append - passive fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jul 6, 2023
1 parent 558aa58 commit a4a5522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iblrig/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit a4a5522

Please sign in to comment.