models.subject

Overview

Enumerates Bpod Subject supported operations.

Implementation

class pybpodgui_api.models.subject.Subject(project)[source]
can_run_task()
get_sessions()

Get all subject sessions

Return type:list(Session)
load(path)

Load subject data from filesystem

Variables:
  • subject_path (str) – Path of the subject
  • data (dict) – data object that contains all subject info
post_load()
remove()

Remove the subject from the project

run_task()
save()

Save subject data on filesystem.

Variables:project_path (str) – Project path.
Returns:Dictionary containing the setup info to save.
Return type:dict
toJSON()
name

Get and set setup name

Return type:str
path

Get and set the path

Return type:str
project

Get and set project

Return type:str
setup

Get and set project

Return type:str