subject

Classes:

New_Subject_Wizard()

A popup that prompts you to define variables for a new subject.Subject object

class New_Subject_Wizard[source]

Bases: PySide2.QtWidgets.QDialog

A popup that prompts you to define variables for a new subject.Subject object

Called by Control_Panel.create_subject() , which handles actually creating the subject file and updating the Terminal.pilots dict and file.

Contains two tabs - Biography_Tab - to set basic biographical information about a subject - Task_Tab - to set the protocol and step to start the subject on

Variables
  • protocol_dir (str) – A full path to where protocols are stored, received from prefs.get('PROTOCOLDIR')

  • bio_tab (Biography_Tab) – Sub-object to set and store biographical variables

  • task_tab (Task_Tab) – Sub-object to set and store protocol and step assignment

Classes:

Task_Tab()

A tab for selecting a task and step to assign to the subject.

Attributes:

staticMetaObject

class Task_Tab[source]

Bases: PySide2.QtWidgets.QWidget

A tab for selecting a task and step to assign to the subject.

Reads available tasks from prefs.get(‘PROTOCOLDIR’) , lists them, and creates a spinbox to select from the available steps.

Warning

Like Biography_Tab , these are not the actual instance attributes. Values are stored in a values dictionary.

Variables
  • protocol (str) – the name of the assigned protocol, filename without .json extension

  • step (int) – current step to assign.

Methods:

update_step_box()

Clears any steps that might be in the step selection box, loads the protocol file and repopulates it.

protocol_changed()

When the protocol is changed, save the value and call update_step_box().

step_changed()

When the step is changed, save it.

Attributes:

staticMetaObject

update_step_box()[source]

Clears any steps that might be in the step selection box, loads the protocol file and repopulates it.

protocol_changed()[source]

When the protocol is changed, save the value and call update_step_box().

step_changed()[source]

When the step is changed, save it.

staticMetaObject = <PySide2.QtCore.QMetaObject object at 0x7fa11f979580>
staticMetaObject = <PySide2.QtCore.QMetaObject object at 0x7fa11f831c40>