DataframeProcedure#

class pyCGM2.IMU.Procedures.imuReaderProcedures.DataframeProcedure(dataframe: DataFrame, translators: Dict, freq='Auto', timeColumn='time_s')#

Procedure to read IMU data from a Pandas DataFrame.

Parameters:
  • dataframe (pd.DataFrame) – DataFrame containing IMU data.

  • translators (Dict) – Dictionary translating DataFrame 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 DataFrame. Defaults to ‘time_s’.

__init__(dataframe: DataFrame, translators: Dict, freq='Auto', timeColumn='time_s')#

Initializes the DataframeProcedure with specified DataFrame, translators, frequency, and time column.

Methods

__init__(dataframe, translators[, freq, ...])

Initializes the DataframeProcedure with specified DataFrame, translators, frequency, and time column.

downsample(freq)

Set the frequency to downsample the IMU data.

read()

Read and process IMU data from the DataFrame.

read() Imu#

Read and process IMU data from the DataFrame.

Returns:

imu.Imu – Instance of IMU containing the processed data.