edfio.Recording#
- class edfio.Recording(*, startdate=None, hospital_administration_code='X', investigator_technician_code='X', equipment_code='X', additional=())[source]#
Object representation of the local recording identification.
Parsing from/to the string containing the local_recording_identification header field is done according to the EDF+ specs. Subfields must be ASCII (32..126) and may not contain spaces.
- Parameters:
- startdate
datetime.date|None, default:None The recording startdate.
- hospital_administration_code
str, default:"X" The hospital administration code of the investigation, e.g., EEG number or PSG number.
- investigator_technician_code
str, default:"X" A code specifying the responsible investigator or technician.
- equipment_code
str, default:"X" A code specifying the used equipment.
- additional
Sequence[str], default:() Optional additional subfields. Will be stored in the header field separated by spaces.
- startdate
Attributes
Optional additional subfields.
A code specifying the used equipment.
The hospital administration code of the investigation.
A code specifying the responsible investigator or technician.
The recording startdate.
Methods
__init__Access a subfield of the local recording identification field by index.
- get_subfield(idx)[source]#
Access a subfield of the local recording identification field by index.
- Parameters:
- idx
int The index of the subfield to access. The first subfield (starting at index 0) should always be “Startdate” according to the EDF+ spedification.
- idx
- Returns:
strThe subfield at the specified index. If the index exceeds the actually available number of subfields, the return value is
"X".
- property hospital_administration_code[source]#
The hospital administration code of the investigation.