-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facilitate pybpod GUI for running protocol #7
Comments
Trying to clone repo and sub modules doesn't work
|
The sub modules could only be clonedwith ssh permission see pybpod/pybpod@98c03e6 |
My bad. Fixed by amending pybpod/pybpod@98c03e6. |
For |
Must update pip in the environment for any |
trying to get the pybod gui ti successfully run the examples protocol When With clear errors in the protocol such as deleting half of the protocol, there is no error. In some of my proding i got it to pop this error but i haven't been able to reproduce it. Traceback (most recent call last):
File "/home/henry/Documents/pybpod-testing/Untitled project 7/tasks/10_state_example/10_state_example.py", line 2, in <module>
my_bpod = Bpod(emulator_mode = dg98)
NameError: name 'dg98' is not defined
Traceback (most recent call last):
File "/home/henry/Documents/pybpod-testing/Untitled project 7/tasks/10_state_example/10_state_example.py", line 3, in <module>
sma = StateMachine(my_bpod)
File "/home/henry/Documents/chris-pybpod/base/pybpod-api/pybpodapi/state_machine/state_machine_runner.py", line 20, in __init__
StateMachineBuilder.__init__(self, bpod)
File "/home/henry/Documents/chris-pybpod/base/pybpod-api/pybpodapi/state_machine/state_machine_base.py", line 52, in __init__
self.state_timers = [0] * self.hardware.max_states # list(float)
TypeError: can't multiply sequence by non-int of type 'NoneType' This is with emulator mode enabled in the gui. Without, the protocol IO fails to open and crashes the program. |
when i first start the program (pybpod-environment) henry@henry-Vostro-270:~/Documents/chris-pybpod/base/pybpod$ start-pybpod
/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
ControlWeb will not work
QtWebEngine may be missing
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
libpng warning: iCCP: known incorrect sRGB profile
26/05/2023 02:44:40 | WARNING | 8756 | pyforms_generic_editor.plugins.loader | install_plugins | Plugins path was not defined by user
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast |
after trying: helloSystem/LinuxRuntime#11 ERROR: ld.so: object '/usr/lib64/libfreetype.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libfreetype.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/lib/x86_64-linux-gnu/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
ControlWeb will not work
QtWebEngine may be missing
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
libpng warning: iCCP: known incorrect sRGB profile
26/05/2023 03:46:40 | WARNING | 11250 | pyforms_generic_editor.plugins.loader | install_plugins | Plugins path was not defined by user
libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: crocus
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast |
just gonna ignore that error ^. Current problems:
|
just got the error e ignored in the board log. idk what is going on |
Steps start up and pybpod
|
after changing user settings, protocols opened in the task editor are empty. Blank. There is no code. |
If you revert the changes, does the code re-appear? |
going from |
pybpod gets its firmware and version from the api settings file. There is no way to easily change them as a user. To do this, we would like to add a snippet of code in |
another problem is that running the protocol |
Once the proper firmware and version with correct number of ports are implemented in the gui, this protocol runs fine |
awesome |
I was wrong. We don't need to do this. Copy and pasting the desired settings into the user settings you can set in the gui works fine. My setting look like this
and I get this this |
problems with with the gui
|
all the examples run fine except running emulator_mouse2afc_example, this is my complete output: ['__UUID4__', '8b305563-5c36-420b-9d10-4f4000850049']
['__CREATED-ON__', '2023-05-29 12:50:51.205583']
['__DEF-URL__', 'http://pybpod-api.readthedocs.org']
['__DEF-TEXT__', 'This file contains data recorded during a session from the PyBpod system']
['__SOFTWARE__', 'PyBpod API v1.8.2']
['__HAS-HEADER__']
['TYPE', 'PC-TIME', 'BPOD-INITIAL-TIME', 'BPOD-FINAL-TIME', 'MSG', '+INFO']
['INFO', '2023-05-29 12:50:51.206482', '', '', 'SERIAL-PORT', '']
['INFO', '2023-05-29 12:50:51.206549', '', '', 'PROTOCOL-NAME', 'emulator_mouse2afc_example']
['INFO', '2023-05-29 12:50:51.206575', '', '', 'CREATOR-NAME', '["csk", "9c98433a-110b-47a7-a0c8-80572324d10e", "local"]']
['INFO', '2023-05-29 12:50:51.206598', '', '', 'PROJECT-NAME', 'pybpod-project']
['INFO', '2023-05-29 12:50:51.206619', '', '', 'EXPERIMENT-NAME', 'Experiment_1']
['INFO', '2023-05-29 12:50:51.206640', '', '', 'BOARD-NAME', 'Board_1']
['INFO', '2023-05-29 12:50:51.206661', '', '', 'SETUP-NAME', 'Setup_1']
['INFO', '2023-05-29 12:50:51.206683', '', '', 'BPOD-GUI-VERSION', '']
['INFO', '2023-05-29 12:50:51.206702', '', '', 'NET-PORT', '36000']
['INFO', '2023-05-29 12:50:51.206725', '', '', 'SUBJECT-NAME', "['Mickey', 'f2ab9be6-1b0f-4c52-b78f-567f7dd06006']"]
['INFO', '2023-05-29 12:50:51.206761', '', '', 'This is a PYBPOD file. Find more info at http://pybpod.readthedocs.io', '']
['INFO', '2023-05-29 12:50:51.206784', '', '', 'BPOD-API-VERSION', '1.8.2']
['INFO', '2023-05-29 12:50:51.206803', '', '', 'SESSION-NAME', '20230529-125050']
['INFO', '2023-05-29 12:50:51.206822', '', '', 'SESSION-STARTED', '2023-05-29 12:50:51.205421']
b'Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.\n'
b'libGL error: MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)\n'
b'libGL error: failed to load driver: crocus\n'
b'libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)\n'
b'libGL error: failed to load driver: swrast\n'
['stderr', '2023-05-29 12:50:54.117685', '', 'Before StateMatrix()', '', '']
['stderr', '2023-05-29 12:50:54.117934', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.119799', '', 'Traceback (most recent call last):\n', '', '']
['stderr', '2023-05-29 12:50:54.119942', '', ' File "/home/henry/Documents/chris-pybpod/base/pybpod-api/pybpodapi/state_machine/state_machine_base.py", line 221, in add_state\n', '', '']
['stderr', '2023-05-29 12:50:54.120295', '', ' ', '', '']
['stderr', '2023-05-29 12:50:54.120343', '', 'action_name', '', '']
['stderr', '2023-05-29 12:50:54.120378', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.120418', '', 'ValueError', '', '']
['stderr', '2023-05-29 12:50:54.120452', '', ': ', '', '']
['stderr', '2023-05-29 12:50:54.120483', '', "'Wire1' is not in list", '', '']
['stderr', '2023-05-29 12:50:54.120516', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.120546', '', '\nDuring handling of the above exception, another exception occurred:\n\n', '', '']
['stderr', '2023-05-29 12:50:54.120581', '', 'Traceback (most recent call last):\n', '', '']
['stderr', '2023-05-29 12:50:54.120616', '', ' File "/home/henry/Documents/pybpod-project/tasks/emulator_mouse2afc_example/emulator_mouse2afc_example.py", line 8, in <module>\n', '', '']
['stderr', '2023-05-29 12:50:54.120752', '', ' ', '', '']
['stderr', '2023-05-29 12:50:54.120791', '', 'Mouse2AFC(bpod).run()', '', '']
['stderr', '2023-05-29 12:50:54.120823', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.120855', '', ' File "/home/henry/Documents/mouse2afc/mouse2afc.py", line 99, in run\n', '', '']
['stderr', '2023-05-29 12:50:54.120998', '', ' ', '', '']
['stderr', '2023-05-29 12:50:54.121036', '', 'self._bpod, self._task_parameters, self._data, i_trial)', '', '']
['stderr', '2023-05-29 12:50:54.121070', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.121102', '', ' File "/home/henry/Documents/mouse2afc/state_matrix.py", line 537, in __init__\n', '', '']
['stderr', '2023-05-29 12:50:54.121381', '', ' ', '', '']
['stderr', '2023-05-29 12:50:54.121420', '', 'output_actions=(IncorrectChoice_Signal + WaitFeedbackStim))', '', '']
['stderr', '2023-05-29 12:50:54.121453', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.121485', '', ' File "/home/henry/Documents/chris-pybpod/base/pybpod-api/pybpodapi/state_machine/state_machine_base.py", line 229, in add_state\n', '', '']
['stderr', '2023-05-29 12:50:54.121670', '', ' ', '', '']
['stderr', '2023-05-29 12:50:54.121708', '', '+ " is an invalid output name."', '', '']
['stderr', '2023-05-29 12:50:54.121740', '', '\n', '', '']
['stderr', '2023-05-29 12:50:54.121775', '', 'pybpodapi.state_machine.state_machine_base', '', '']
['stderr', '2023-05-29 12:50:54.121808', '', '.', '', '']
['stderr', '2023-05-29 12:50:54.121839', '', 'SMAError', '', '']
['stderr', '2023-05-29 12:50:54.121871', '', ': ', '', '']
['stderr', '2023-05-29 12:50:54.121901', '', 'Error creating state: Punishment. Wire1 is an invalid output name.', '', '']
['stderr', '2023-05-29 12:50:54.121934', '', '\n', '', ''] |
Found another work around for ^^. In the task parameter gui, don't select Similarly, this error can happens with the state # Wire1 settings
Wire1OutError = iff(task_parameters.Wire1VideoTrigger, [(
'Wire2', 2)], [])
Wire1OutCorrectCondition = task_parameters.Wire1VideoTrigger and \
data.Custom.CatchTrial[i_trial]
Wire1OutCorrect = iff(Wire1OutCorrectCondition,
[('Wire2', 2)], []) If these two options are not selected to avoid ('WireX','Y') as an output, the protocol runs fun. There issue is with the wire outputs |
I was wrong about being wrong. I got the protocol to run without > BPOD_BNC_PORTS_ENABLED = [True, True]
> BPOD_WIRED_PORTS_ENABLED = [True, True, True, True]
> BPOD_BEHAVIOR_PORTS_ENABLED = [True, True, True, False, False, False, False, False] in user settings. For some reason without it, pybpod crashes. Specifcally the file inside |
I do not understand why it works or doesn't work. |
I would like to do the first idea of inputting a line or two to check for user settings which would then overwrite the current settings as to add the current firmware and number of ports etc. My problem is finding where the program gets its settings to begin with |
in
The |
Put more custom settings in the GUI user settings. Then put a breakpoint after this statement and run a protocol. When the breakpoint is reached, print the contents of |
See HenryJFlynn/pybpod-gui-api#1 for the fix to |
Currently the pybpod task parameters settings are so that there is little to no time to make a choice. You centerpoke and before you can pokeout the trial is over. Gonna try to fix this by updating the |
Differences between matlab task parameter gui and pybpod
|
This didn't help and made things worse |
['stderr', '2023-05-31 11:43:40.798847', '', 'Before StateMatrix()', '', '']
['stderr', '2023-05-31 11:43:40.798933', '', '\n', '', '']
['stderr', '2023-05-31 11:43:40.800174', '', 'Before send_state_machine()', '', '']
['stderr', '2023-05-31 11:43:40.800325', '', '\n', '', '']
['stderr', '2023-05-31 11:43:40.805836', '', 'Before run_state_machine()', '', '']
['stderr', '2023-05-31 11:43:40.805992', '', '\n', '', '']
['TRIAL', '2023-05-31 11:43:40.806068', '', '', 'New trial', '']
['EVENT', '2023-05-31 11:43:40.816268', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:40.816771', '', '', 'WaitForCenterPoke', '']
['EVENT', '2023-05-31 11:43:44.730820', '', '', '44', 'Port2In']
['TRANSITION', '2023-05-31 11:43:44.730986', '', '', 'PreStimReward', '']
['EVENT', '2023-05-31 11:43:44.740809', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.740978', '', '', 'TriggerWaitForStimulus', '']
['EVENT', '2023-05-31 11:43:44.760811', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.760895', '', '', 'WaitForStimulus', '']
['EVENT', '2023-05-31 11:43:44.760977', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.761256', '', '', 'stimulus_delivery', '']
['EVENT', '2023-05-31 11:43:44.928123', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.928477', '', '', 'BeepMinSampling', '']
['EVENT', '2023-05-31 11:43:44.928582', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.928836', '', '', 'CenterPortRewardDelivery', '']
['EVENT', '2023-05-31 11:43:44.961520', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:44.961872', '', '', 'StimulusTime', '']
['EVENT', '2023-05-31 11:43:45.028618', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:45.029074', '', '', 'WaitCenterPortOut', '']
['EVENT', '2023-05-31 11:43:45.029174', '', '', '63', 'GlobalTimer1_End']
['TRANSITION', '2023-05-31 11:43:45.029250', '', '', 'timeOut_missed_choice', '']
['EVENT', '2023-05-31 11:43:45.039190', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:45.039560', '', '', 'ITI', '']
['EVENT', '2023-05-31 11:43:45.039650', '', '', '67', 'GlobalTimer5_End']
['EVENT', '2023-05-31 11:43:45.059208', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:45.059393', '', '', 'ext_ITI', '']
['EVENT', '2023-05-31 11:43:45.059489', '', '', '77', 'Condition5']
['END-TRIAL', '2023-05-31 11:43:45.059623', '', '', 'The trial ended', '']
['INFO', '2023-05-31 11:43:45.059668', '1685522620.806183', '1685522625.0594468', 'TRIAL-BPOD-TIME', '4.253263711929321']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059704', '0.010018348693847656', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059736', '3.924581289291382', '', '44', 'Port2In']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059764', '3.9345827102661133', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059790', '3.9545962810516357', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059819', '3.9547641277313232', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059845', '4.1218860149383545', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059873', '4.122363567352295', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059899', '4.1552817821502686', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059926', '4.222383260726929', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059952', '4.222947359085083', '', '63', 'GlobalTimer1_End']
['EVENT-SUMMARY', '2023-05-31 11:43:45.059980', '4.232963800430298', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.060006', '4.233433723449707', '', '67', 'GlobalTimer5_End']
['EVENT-SUMMARY', '2023-05-31 11:43:45.060033', '4.2529661655426025', '', '78', 'Tup']
['EVENT-SUMMARY', '2023-05-31 11:43:45.060059', '4.253263711929321', '', '77', 'Condition5']
['STATE', '2023-05-31 11:43:45.060113', '0', '0.010018348693847656', 'ITI_Signal', '0.010018348693847656']
['STATE', '2023-05-31 11:43:45.060164', '0.010018348693847656', '3.924581289291382', 'WaitForCenterPoke', '3.914562940597534']
['STATE', '2023-05-31 11:43:45.060196', '3.924581289291382', '3.9345827102661133', 'PreStimReward', '0.010001420974731445']
['STATE', '2023-05-31 11:43:45.060226', '3.9345827102661133', '3.9545962810516357', 'TriggerWaitForStimulus', '0.02001357078552246']
['STATE', '2023-05-31 11:43:45.060268', '3.9545962810516357', '3.9547641277313232', 'WaitForStimulus', '0.0001678466796875']
['STATE', '2023-05-31 11:43:45.060298', '3.9547641277313232', '4.1218860149383545', 'stimulus_delivery', '0.16712188720703125']
['STATE', '2023-05-31 11:43:45.060340', '4.1218860149383545', '4.122363567352295', 'BeepMinSampling', '0.0004775524139404297']
['STATE', '2023-05-31 11:43:45.060370', '4.122363567352295', '4.1552817821502686', 'CenterPortRewardDelivery', '0.03291821479797363']
['STATE', '2023-05-31 11:43:45.060399', '4.1552817821502686', '4.222383260726929', 'StimulusTime', '0.06710147857666016']
['STATE', '2023-05-31 11:43:45.060428', '4.222383260726929', '4.222947359085083', 'WaitCenterPortOut', '0.0005640983581542969']
['STATE', '2023-05-31 11:43:45.060458', '4.222947359085083', '4.232963800430298', 'timeOut_missed_choice', '0.010016441345214844']
['STATE', '2023-05-31 11:43:45.060488', '4.232963800430298', '4.2529661655426025', 'ITI', '0.020002365112304688']
['STATE', '2023-05-31 11:43:45.060517', '4.2529661655426025', '4.253263711929321', 'ext_ITI', '0.00029754638671875']
['STATE', '2023-05-31 11:43:45.060553', 'nan', 'nan', 'StimDelayGrace', 'nan']
['STATE', '2023-05-31 11:43:45.060581', 'nan', 'nan', 'broke_fixation', 'nan']
['STATE', '2023-05-31 11:43:45.060608', 'nan', 'nan', 'early_withdrawal', 'nan']
['STATE', '2023-05-31 11:43:45.060635', 'nan', 'nan', 'TriggerWaitChoiceTimer', 'nan']
['STATE', '2023-05-31 11:43:45.060662', 'nan', 'nan', 'WaitForChoice', 'nan']
['STATE', '2023-05-31 11:43:45.060689', 'nan', 'nan', 'WaitForRewardStart', 'nan']
['STATE', '2023-05-31 11:43:45.060716', 'nan', 'nan', 'WaitForReward', 'nan']
['STATE', '2023-05-31 11:43:45.060742', 'nan', 'nan', 'RewardGrace', 'nan']
['STATE', '2023-05-31 11:43:45.060768', 'nan', 'nan', 'Reward', 'nan']
['STATE', '2023-05-31 11:43:45.060797', 'nan', 'nan', 'WaitRewardOut', 'nan']
['STATE', '2023-05-31 11:43:45.060824', 'nan', 'nan', 'RegisterWrongWaitCorrect', 'nan']
['STATE', '2023-05-31 11:43:45.060851', 'nan', 'nan', 'WaitForPunishStart', 'nan']
['STATE', '2023-05-31 11:43:45.060877', 'nan', 'nan', 'WaitForPunish', 'nan']
['STATE', '2023-05-31 11:43:45.060906', 'nan', 'nan', 'PunishGrace', 'nan']
['STATE', '2023-05-31 11:43:45.060932', 'nan', 'nan', 'Punishment', 'nan']
['STATE', '2023-05-31 11:43:45.060958', 'nan', 'nan', 'WaitPunishOut', 'nan']
['STATE', '2023-05-31 11:43:45.060984', 'nan', 'nan', 'timeOut_EarlyWithdrawal', 'nan']
['STATE', '2023-05-31 11:43:45.061011', 'nan', 'nan', 'timeOut_EarlyWithdrawalFlashOn', 'nan']
['STATE', '2023-05-31 11:43:45.061037', 'nan', 'nan', 'timeOut_IncorrectChoice', 'nan']
['STATE', '2023-05-31 11:43:45.061063', 'nan', 'nan', 'timeOut_SkippedFeedback', 'nan']
['stderr', '2023-05-31 11:43:45.061852', '', 'Before StateMatrix()', '', '']
['stderr', '2023-05-31 11:43:45.061888', '', '\n', '', '']
['stderr', '2023-05-31 11:43:45.062968', '', 'Before send_state_machine()', '', '']
['stderr', '2023-05-31 11:43:45.063002', '', '\n', '', '']
['stderr', '2023-05-31 11:43:45.067969', '', 'Before run_state_machine()', '', '']
['stderr', '2023-05-31 11:43:45.068011', '', '\n', '', '']
['TRIAL', '2023-05-31 11:43:45.068041', '', '', 'New trial', '']
['EVENT', '2023-05-31 11:43:45.078167', '', '', '78', 'Tup']
['TRANSITION', '2023-05-31 11:43:45.078398', '', '', 'WaitForCenterPoke', '']
['EVENT', '2023-05-31 11:43:45.528845', '', '', '45', 'Port2Out'] as you can all every state transition is a timer which hits immediately. I did |
^^
Not all the changes made to |
^^ ['TRANSITION', '2023-05-31 11:43:45.029074', '', '', 'WaitCenterPortOut', '']
['EVENT', '2023-05-31 11:43:45.029174', '', '', '63', 'GlobalTimer1_End']
['TRANSITION', '2023-05-31 11:43:45.029250', '', '', 'timeOut_missed_choice', ''] While in |
next steps: set break points in |
stepping through class TaskParameters:
_default_file = fullpath('config.py')
def __init__(self, file_=None, open_gui=True):
self._file = file_ or self._default_file
self.task_parameters = None
self._load()
if open_gui:
app = QApplication(sys.argv)
self.GUI = TaskParametersGUI(self.task_parameters)
app.exec_()
self.task_parameters = AttrDict(**self.task_parameters) the |
.ui file portion for
vs portion related to
they're the same so it is not something to do with how the gui was created. I went into Qt Designer and verified this |
Variables which config isn't working with:
Each default to zero or false even tho they are non-zero or true in config |
the error are caused by spelling errors/discrepancies. Must edit .ui with Qt Designer and edit config to match. In doing this I somehow broke it and am getting a calibration error so i am gonna restart See #17 |
Two problems:
|
Global timer issue: self.set_global_timer(1, FeedbackDelayCorrect)
...
FeedbackDelayCorrect = iff(data.Custom.CatchTrial[
i_trial], Const.FEEDBACK_CATCH_CORRECT_SEC,
task_parameters.FeedbackDelay) in matlab sma = SetGlobalTimer(sma,TimerIDChoiceDeadLine,TaskParameters.GUI.ChoiceDeadLine); I think the values of all the globaltimer has been jumbled. Globaltimer1 shouldn't be defined by FeedbackDelayCorrect but globaltimer2 should be |
|
Now am trying to get every state triggered, essentially stress testing the protocol |
After CenterPokeIn, a choice is presented that light (left or right) stays on in matlab for the entirety of WaitForChoice but it does not in python. ['EVENT', '2023-06-01 14:39:02.669515', '', '', '44', 'Port2In']
['TRANSITION', '2023-06-01 14:39:02.669700', '', '', 'PreStimReward', '']
['EVENT', '2023-06-01 14:39:02.679525', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.679735', '', '', 'TriggerWaitForStimulus', '']
['EVENT', '2023-06-01 14:39:02.699564', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.699698', '', '', 'WaitForStimulus', '']
['EVENT', '2023-06-01 14:39:02.699796', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.700116', '', '', 'stimulus_delivery', '']
['EVENT', '2023-06-01 14:39:02.866920', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.867315', '', '', 'BeepMinSampling', '']
['EVENT', '2023-06-01 14:39:02.867419', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.867688', '', '', 'CenterPortRewardDelivery', '']
['EVENT', '2023-06-01 14:39:02.900338', '', '', '78', 'Tup']
['TRANSITION', '2023-06-01 14:39:02.900690', '', '', 'StimulusTime', ''] Turning off the light is set somewhere in this, i think |
python the correct answer is always right |
This is a general goal and not really an issue. Gonna use this idea to find problems which will become issues. With that I am gonna close this issue |
TODO:
git clone --recursive https://github.com/ckarageorgkaneen/pybpod.git chris-pybpod
The text was updated successfully, but these errors were encountered: