models.task

Overview

Enumerates Bpod Task supported operations.

Implementation

class pybpodgui_api.models.task.Task(project=None)[source]
create_execcmd()
create_scriptcmd()
load(path)

Load setup data from filesystem

Variables:
  • task_path (str) – Path of the task
  • data (dict) – data object that contains all task info
make_emptyfile()

Creates the task folder if does not exists and an empty code file

make_path()

Creates the task folder

remove()

Remove the task from the project.

save()

Save setup data on filesystem.

Variables:
  • project_path (str) – Project path.
  • data (dict) – Dictionary where to save the data to.
Returns:

Dictionary containing the task info to save.

Return type:

dict

commands

Get commands

Return type:list(TaskCommand)
filepath

Get and set task file path

Return type:str
name

Get and set task name

Return type:str
path

Get and set task path

Return type:str
project

Get and set project

Return type:Project
trigger_softcodes

Get net port

Return type:int