models.board.taskvariable

Overview

Enumerates Bpod task variable supported operations.

Implementation

class pybpodgui_api.models.setup.task_variable.TaskVariable(board_task, name=None, value=None, datatype='string')[source]
load(data)[source]

Load variable data from filesystem

Variables:
  • setup_path (str) – Path of the setup
  • data (dict) – data object that contains all setup info
save()[source]

Save variable data on filesystem.

Variables:setup_path (str) – Setup path.
Returns:Dictionary containing the variable info to save.
Return type:dict
datatype

Get and set variable data type. It can be from type ‘number’ or ‘string’

Return type:str
name

Get and set variable name

Return type:str
value

Get and set variable value

Return type:str