biopsykit.utils.legacy_helper module¶
Module providing helper functions to convert old BioPsyKit export files to new export formats.
- biopsykit.utils.legacy_helper.legacy_convert_hr_phase_dict(file_path, export=True)[source]¶
Legacy conversion for
HeartRatePhaseDict.Legacy conversion includes changing the column name from “ECG_Rate” into “Heart_Rate”.
- Parameters
file_path (
Pathor str) – path to fileexport (bool, optional) –
Trueto directly export the convertedHeartRatePhaseDictunder the same file name,Falseto return the convertedHeartRatePhaseDict
- Returns
The converted
HeartRatePhaseDict, ifexportisFalse- Return type