models.setup

Overview

Enumerates Bpod setup supported operations.

Implementation

class pybpodgui_api.models.setup.Setup(experiment)[source]
can_run_task()
clear_subjects()
create_board_task()

Create a new BoardTask object

Return type:BoardTask
create_session()

Create a new Session object

Return type:Session
kill_task()
load(path)

Load setup data from filesystem

Variables:
  • setup_path (str) – Path of the setup
  • data (dict) – data object that contains all setup info
pause_trial()
remove()

Remove the setup from the project

resume_trial()
save()

Save setup data on filesystem.

Variables:parent_path (str) – Experiment path.
Returns:Dictionary containing the setup info to save.
Return type:dict
stop_task()
stop_trial()
board

Get and set setup board

Return type:Board
detached
experiment

Get and set the experiment

Return type:Experiment
last_session

Get last created session

Return type:Session
name

Get and set setup name

Return type:str
net_port
path

Get and set setup path

Return type:str
project

Get project

Return type:Project
sessions

Get the list of sessions

Return type:list(Session)
status
subjects

Get list of subjects

Return type:list(Subject)
task

Get and set task

Return type:Task
update_variables