dispel.providers.sensorlog.processing module#

Processing steps to transform SensorLog readings into internal structure.

class dispel.providers.sensorlog.processing.AlignTimestamp[source]#

Bases: TransformStep

Align the timestamp of a data set to refer to logging time.

get_new_data_set_id()[source]#

Return the same data set id as provided for the input.

Return type:

str

storage_error: StorageError = 'overwrite'#
ts_column = 'ts'#
class dispel.providers.sensorlog.processing.MeltUserMotionAndGravity[source]#

Bases: TransformStep

A step to melt the motion and gravity measurements from sensorlog.

data_set_ids: str | Iterable[str] = ['motion-user-acceleration', 'motion-gravity']#

An iterable of data sets to be being processed

definitions: List[RawDataValueDefinition] = [<RawDataValueDefinition: ts (ts)>, <RawDataValueDefinition: userAccelerationX (X)>, <RawDataValueDefinition: userAccelerationY (Y)>, <RawDataValueDefinition: userAccelerationZ (Z)>, <RawDataValueDefinition: gravityX (X)>, <RawDataValueDefinition: gravityY (Y)>, <RawDataValueDefinition: gravityZ (Z)>]#
storage_error: StorageError = 'overwrite'#
class dispel.providers.sensorlog.processing.PreprocessAcceleration[source]#

Bases: ProcessingStepGroup

Preprocessing steps to transform the acceleration.

steps: List[ProcessingStep] = [<dispel.providers.sensorlog.processing.MeltUserMotionAndGravity object>, <dispel.providers.sensorlog.processing.AlignTimestamp object>]#
class dispel.providers.sensorlog.processing.PreprocessGyroscope[source]#

Bases: ProcessingStepGroup

Preprocessing steps to transform the gyroscope.

steps: List[ProcessingStep] = [<dispel.providers.sensorlog.processing.RenameAndUnsetTimestampIndexForGyroscope object>, <dispel.providers.sensorlog.processing.AlignTimestamp object>]#
class dispel.providers.sensorlog.processing.RenameAndUnsetTimestampIndexForGyroscope[source]#

Bases: TransformStep

A step to rename columns and reset index for gyro.

data_set_ids: str | Iterable[str] = 'gyro'#

An iterable of data sets to be being processed

definitions: List[RawDataValueDefinition] = [<RawDataValueDefinition: ts (ts)>, <RawDataValueDefinition: x (x)>, <RawDataValueDefinition: y (y)>, <RawDataValueDefinition: z (z)>]#
new_data_set_id: str = 'gyroscope'#