PatientEnfReader#
- class pyCGM2.Nexus.eclipse.PatientEnfReader(path: str, enfFile: str)#
- A class for handling a Patient.enf file created by Vicon Nexus. - Inherits from EnfReader. - __init__(path: str, enfFile: str)#
- Initializes the PatientEnfReader object. 
 - Methods - __init__(path, enfFile)- Initializes the PatientEnfReader object. - get(label)- Retrieves the value of a specified parameter from the Patient.enf file. - getFile()- Retrieves the filename of the .enf file. - getPath()- Retrieves the path of the folder containing the .enf file. - Retrieves the patient information section from the Patient.enf file. - getSection(section)- Returns the content of a specified section from the .enf file. - save()- Saves the changes made to the Patient.enf file. - set(label, value)- Sets the value of a specified parameter in the Patient.enf file. - get(label: str)#
- Retrieves the value of a specified parameter from the Patient.enf file. - Parameters:
- label (str) – The name of the parameter. 
- Returns:
- Any – The value of the specified parameter. 
 
 - getPatientInfos()#
- Retrieves the patient information section from the Patient.enf file. - Returns:
- dict – A dictionary containing patient information. 
 
 - save()#
- Saves the changes made to the Patient.enf file. 
 - set(label: str, value: str)#
- Sets the value of a specified parameter in the Patient.enf file. - Parameters:
- label (str) – The name of the parameter. 
- value (str) – The value to be set. 
 
 
 
