dispel.processing.modalities module#

A module containing functionality to process specific modalities.

class dispel.processing.modalities.HandModality[source]#

Bases: AVEnum

Handedness for tasks that are applied to different hands.

LEFT = 1#
RIGHT = 2#
class dispel.processing.modalities.HandModalityFilter[source]#

Bases: LevelFilter

Filter for same hand modality.

__init__(hand)[source]#
Parameters:

hand (HandModality) –

filter(levels)[source]#

Filter levels performed with a specific hand.

Parameters:

levels (Iterable[Level]) –

Return type:

Set[Level]

repr()[source]#

Get representation of the filter.

class dispel.processing.modalities.LimbModality[source]#

Bases: AVEnum

Type of limb exercises enumerator.

LOWER_LIMB = 2#
UPPER_LIMB = 1#
class dispel.processing.modalities.SensorModality[source]#

Bases: AVEnum

Sensor types enumerator.

ACCELEROMETER = 1#
GYROSCOPE = 2#
INTENTIONAL = 3#
unit(order=1)[source]#

Get the unit of the sensor signal.

Parameters:

order (int) – The unit order.

Returns:

The unit of the sensor.

Return type:

str