openlifu.db.subject.Subject¶
- class openlifu.db.subject.Subject(id: Annotated[str | None, OpenLIFUFieldData(name='Subject ID', description='ID of the subject')] = None, name: Annotated[str | None, OpenLIFUFieldData(name='Subject name', description='Name of the subject')] = None, attrs: Annotated[dict, OpenLIFUFieldData(name='Attributes', description='Dictionary of attributes')] = <factory>)[source]¶
Bases:
DictMixinClass representing a subject
- attrs: Annotated[dict, OpenLIFUFieldData(name='Attributes', description='Dictionary of attributes')]¶
Dictionary of attributes
- static from_file(filename)[source]¶
Create a subject from a file
- Parameters:
filename – Name of the file to read
- Returns:
Subject object
- id: Annotated[str | None, OpenLIFUFieldData(name='Subject ID', description='ID of the subject')] = None¶
ID of the subject
- name: Annotated[str | None, OpenLIFUFieldData(name='Subject name', description='Name of the subject')] = None¶
Name of the subject