Skip to content

Commit b2b58a2

Browse files
committed
Update task.py
1 parent a51ed53 commit b2b58a2

File tree

1 file changed

+2
-2
lines changed
  • iblrig_custom_tasks/samuel_tonotopicMapping

1 file changed

+2
-2
lines changed

iblrig_custom_tasks/samuel_tonotopicMapping/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def start_mixin_sound(self):
105105
bpod_action = (module_port, self.bpod._define_message(self.bpod.sound_card, bpod_message))
106106
self.bpod.actions.update({f'freq_{frequency_idx}': bpod_action})
107107

108-
self.bpod.softcode_handler_function = Session.softcode_handler
108+
self.bpod.softcode_handler_function = self.softcode_handler
109109

110110
def start_hardware(self):
111111
self.start_mixin_bpod()
@@ -136,7 +136,7 @@ def get_state_machine(self, trial_number: int) -> StateMachine:
136136

137137
# build state machine
138138
sma = StateMachine(self.bpod)
139-
for state_idx, frequency_idx in enumerate(Session.sequence):
139+
for state_idx, frequency_idx in enumerate(self.sequence):
140140
sma.add_state(
141141
state_name=self.get_state_name(state_idx),
142142
state_timer=self.task_params['d_sound'] + self.task_params['d_pause'],

0 commit comments

Comments
 (0)