dispel.providers.generic.tasks.gait.hip module#
A module specific to measures related to hip rotation.
- class dispel.providers.generic.tasks.gait.hip.AggHipRotation[source]#
Bases:
GaitBoutAggregateStep
Extract Hip Rotation related measures.
- Parameters:
step_detection_id – The raw data set that contains the step detection generic data set. e.g.:
lee
.hip_rotation_sign – A string indicating the sign of the hip rotation we want to keep either positive or negative.
- class dispel.providers.generic.tasks.gait.hip.AggHipRotationWithoutBout[source]#
Bases:
AggregateRawDataSetColumn
Extract Hip Rotation related measures.
- Parameters:
step_detection_id – The raw data set that contains the step detection generic data set. e.g.:
lee
.hip_rotation_sign – A string indicating the sign of the hip rotation we want to keep either positive or negative.
- class dispel.providers.generic.tasks.gait.hip.ExtractHipRotation[source]#
Bases:
CoreProcessingStepGroup
Group processing steps for Hip Rotation measures.
- Parameters:
- class dispel.providers.generic.tasks.gait.hip.ExtractHipRotationWithoutBouts[source]#
Bases:
CoreProcessingStepGroup
Group processing steps for Hip Rotation measures without walking bouts.
- Parameters:
- dispel.providers.generic.tasks.gait.hip.HIP_SIGNS = ['positive', 'negative']#
Define the possible hip rotation sign.
- class dispel.providers.generic.tasks.gait.hip.HipRotationGroup[source]#
Bases:
CoreProcessingStepGroup
Group processing steps for Hip Rotation transforms.
- Parameters:
- class dispel.providers.generic.tasks.gait.hip.SignHipRotation[source]#
Bases:
TransformStep
Separate positive and negative Hip Rotation, keep absolute value.
- Parameters:
step_detection_id – The raw data set that contains the step detection generic data set. e.g.:
lee
.hip_rotation_sign – A string indicating the sign of the hip rotation we want to keep either positive or negative.
on_walking_bouts – A boolean indicating if the computation should be made on walking bouts only.
- class dispel.providers.generic.tasks.gait.hip.TransformHipRotation[source]#
Bases:
TransformStep
A transform step to compute hip rotation.
The Hip rotation is computed as the integration of the angular velocity along the rotated, vertical x-axis.
- Parameters:
rotation_speed_id – The raw data set that contains the angular velocity series.
step_detection_id – The raw data set that contains the step detection generic data set. e.g.:
lee
.component – The component defining the rotation.
on_walking_bouts – A boolean indicating if the computation should be made on walking bouts only.
- dispel.providers.generic.tasks.gait.hip.compute_hip_rotation(rotation_speed, step_detection, on_walking_bouts)[source]#
Compute hip rotation between consecutive steps.
- Parameters:
rotation_speed (DataFrame) – A series of angular velocity, typically the gravity-rotated, vertical x-axis.
step_detection (DataFrame) – The data frame that contains the step detection generic data set.
on_walking_bouts (bool) – A boolean indicating if the computation should be made on walking bouts only.
- Returns:
A data frame with a column
hip_rotation
indicating the hip rotation computed between consecutive steps.- Return type: