models.session

Overview

Enumerates Bpod session supported operations.

Implementation

class pybpodgui_api.models.session.Session(setup)[source]
load(path)
Parameters:
  • session_path
  • data
Returns:

load_contents(init_func=None, update_func=None, end_func=None)

Parses session history file, line by line and populates the history message on memory.

load_info()
remove()

Remove the session from the project

save()
Parameters:parent_path
Returns:
STATUS_READY = 0
STATUS_SESSION_RUNNING = 1
board_name

Get and set board name

Return type:str
board_serial_port

Get and set board serial port

Return type:str
ended

Get and set the end datetime of the session

Return type:datetime.datetime
filepath
is_running
messages_history

Get and set the history of messages

Return type:list(BaseMessage)
name

Get and set session name

Return type:str
path

Get and set path name

Return type:str
project

Get the session Project

Return type:Project
setup

Get and set the setup

Return type:Setup
setup_name

Get and set setup name

Return type:str
started

Get and set the start datetime of the session

Return type:datetime.datetime
status

Get and set the session status

Return type:str
subjects

Get and set session name

Return type:
task

Get the session Task

Return type:Task
task_name

Get and set the task name

Return type:str
variables