models.board

Overview

Enumerates Bpod board supported operations.

Implementation

class pybpodgui_api.models.board.Board(project)[source]
end_run_task_handler()
freegui()

Function used to release the processing to update the GUI events

kill_task()
load(path)

Load board data from filesystem

Variables:
  • board_path (str) – Path of the board
  • data (dict) – data object that contains all board info
log2board(data)

Function used to update the board log

pause_trial()
remove()
resume_trial()
run_task_handler(flag=True)
save()

Save experiment data on filesystem.

Variables:parent_path (dict) – Project path.
Returns:Dictionary containing the board info to save. If None is returned, it means that ther was a failure.
Return type:dict
start_run_task_handler()
stop_task()
stop_thread()
stop_trial()
INFO_BOARD_NAME = 'BOARD-NAME'
INFO_BPODGUI_VERSION = 'BPOD-GUI-VERSION'
INFO_CREATOR_NAME = 'CREATOR-NAME'
INFO_EXPERIMENT_NAME = 'EXPERIMENT-NAME'
INFO_PROJECT_NAME = 'PROJECT-NAME'
INFO_SETUP_NAME = 'SETUP-NAME'
INFO_SUBJECT_NAME = 'SUBJECT-NAME'
enabled_behaviorports

Get and set the experiment name

Return type:list(Boolean)
enabled_bncports

Get and set enabled bncports

Return type:list(Boolean)
enabled_wiredports

Get and set the enabled wired ports

Return type:list(Boolean)
name

Get and set the board name

Return type:str
net_port

Get and set the experiment name

Return type:list(Boolean)
path

Get and set the board path

Return type:str
project

Get and set the board project

Return type:str
serial_port

Get and set the board serial port

Return type:str
status

Get and set the board status

Return type:str