CsvProcedure#
- class pyCGM2.IMU.Procedures.imuReaderProcedures.CsvProcedure(fullfilename: str, translators: Dict, freq='Auto', timeColumn='time_s')#
Procedure to read IMU data from a CSV file.
- Parameters:
fullfilename (str) – Path and filename of the CSV file.
translators (Dict) – Dictionary translating CSV column names to IMU data labels.
freq (str, optional) – Frequency of the IMU data. If set to ‘Auto’, it will be automatically determined. Defaults to ‘Auto’.
timeColumn (str, optional) – Name of the time column in the CSV file. Defaults to ‘time_s’.
- __init__(fullfilename: str, translators: Dict, freq='Auto', timeColumn='time_s')#
Initializes the CsvProcedure with specified file, translators, frequency, and time column.
Methods
__init__
(fullfilename, translators[, freq, ...])Initializes the CsvProcedure with specified file, translators, frequency, and time column.
downsample
(freq)Set the frequency to downsample the IMU data.
read
()Read and process IMU data from the CSV file.