From 45de690360f55365a0287234f8f7f8871468ee5d Mon Sep 17 00:00:00 2001 From: Chris Karageorgiou Kaneen Date: Sat, 12 Sep 2020 19:37:33 +0300 Subject: [PATCH] Fix function example bugs --- examples/function_examples/add_trial_events2.py | 2 +- examples/function_examples/manual_override.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/function_examples/add_trial_events2.py b/examples/function_examples/add_trial_events2.py index f498b42..e6d3c90 100644 --- a/examples/function_examples/add_trial_events2.py +++ b/examples/function_examples/add_trial_events2.py @@ -48,7 +48,7 @@ state_name='FlashStimulus', state_timer=0.1, state_change_conditions={Bpod.Events.Tup: 'WaitForResponse'}, - output_actions=[(stimulus, 255, Bpod.OutputChannels.GlobalTimerTrig, 1)]) + output_actions=[(stimulus, 255), (Bpod.OutputChannels.GlobalTimerTrig, 1)]) sma.add_state( state_name='WaitForResponse', diff --git a/examples/function_examples/manual_override.py b/examples/function_examples/manual_override.py index c991cd5..c7861dd 100644 --- a/examples/function_examples/manual_override.py +++ b/examples/function_examples/manual_override.py @@ -11,7 +11,7 @@ from pybpodapi.protocol import Bpod -import examples.settings as settings +import examples.user_settings as settings @@ -124,4 +124,4 @@ my_bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.SERIAL, channel_number=1, value=66) # Stop Bpod -my_bpod.close() # Sends a termination byte and closes the serial port. PulsePal stores current params to its EEPROM. \ No newline at end of file +my_bpod.close() # Sends a termination byte and closes the serial port. PulsePal stores current params to its EEPROM.