Mapping

class gaitalytics.mapping.MappedMarkers(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

This defines the markers that are mapped in the configuration file.

L_HEEL

Left heel marker

Type:

str

R_HEEL

Right heel marker

Type:

str

L_TOE

Left toe marker

Type:

str

R_TOE

Right toe marker

Type:

str

L_ANKLE

Left ankle marker

Type:

str

R_ANKLE

Right ankle marker

Type:

str

L_TOE_2

Left toe 2 marker

Type:

str

R_TOE_2

Right toe 2 marker

Type:

str

L_ANT_HIP

Left anterior hip marker

Type:

str

R_ANT_HIP

Right anterior hip marker

Type:

str

L_POST_HIP

Left posterior hip marker

Type:

str

R_POST_HIP

Right posterior hip marker

Type:

str

SACRUM

Sacrum marker

Type:

str

XCOM

Extrapolated center of mass marker

Type:

str

class gaitalytics.mapping.MappingConfigs(config_path: Path)

A class for reading the mapping configuration file.

This class provides methods to read the mapping configuration file and get the markers and analogs for analysis.

__init__(config_path: Path)

Initializes a new instance of the MappingConfigs class.

Reads the yaml file into memory.

Parameters:

config_path – The path to the configuration file.

get_analogs_analysis() list[str]

Gets the analogs for analysis.

Returns:

A list of analog names to be used for analysis if present in the config file, otherwise an empty list.

Raises:

ValueError – If the analysis section is missing in the config file.

get_marker_mapping(marker: MappedMarkers) str

Gets the mapping of markers.

Parameters:

marker – The marker to get the mapping for.

Returns:

The mapped marker name if present in the config file.

Raises:

ValueError – If sections in the mapping are missing in the config file.

get_markers_analysis() list[str]

Gets the markers for analysis.

Returns:

A list of marker names to be used for analysis if present in the config file, otherwise an empty list.

Raises:

ValueError – If the analysis section is missing in the config file.