pyCGM2.Mek#

Extraction and normalisation#

extraction#

mekExtractFilter(mekStorage[, group])

Filter extracting c3d data into the Extraction group of a mek data store.

normalisation#

mekNormalizeFilter(mekStorage, group)

Filter normalising the extracted data into the Normalize group of a mek data store.

normalize(values, attrs, eventStartTime, ...)

Normalise a signal segment to 101 points between two instants.

operations#

compute_spatio_temporal_parametersOperation(...)

Compute the spatio-temporal parameters of c3d files and store them in a group.

Scores#

ScoreFilter(scoreProcedure, group, normativeData)

A filter for calculating scores using a specified scoring procedure.

ScoreProcedure()

Abstract class of score procedures.

CGM1_GPS([pointSuffix])

Gait Profile Score (GPS) calculation based on Baker et al. 2009.

Plot#

mekPlotFilter([procedure])

Filter running a mek plot procedure.

AbstractMekPlotProcedure([layout, figsize])

Abstract class of mek plot procedures.

mekPlotNormalizedLayoutProcedure([layout, ...])

Plot time-normalized cycles of one or several condition groups according to a layout.

mekPlotNormalizedEmgLayoutProcedure([...])

Plot time-normalized EMG cycles (envelops) of one or several condition groups.

mekPlotTemporalEmgLayoutProcedure([layout, ...])

Plot temporal EMG signals of one trial according to a layout.

loadLayout(filename[, name, path])

Load a layout file.

fillEmgLayout(layout, userSettings, conditionId)

Fill an EMG layout (EMG1_16, EMG1_10...) from the flow user settings.

gatherNormalizedCycles(conditionGroup, ...)

Gather the normalized cycles of a label.

Flow#

build_session_conditions_dataframe(ds)

Build a dataframe of the conditions of all sessions of a data store.

Tools#

mekAttributesToDict(group)

Return the attributes of a group (or dataset) as a dictionary.

writeDataset(group, name, data[, attributes])

Write a dataset in a group, creating it if needed.

iter_sets(groupe[, prefix])

Iterate recursively over the datasets of a group.

iter_grp(groupe[, prefix])

Iterate recursively over the sub-groups of a group.

Query#

MekQuery(source)

Chainable, lazy query over a moveck data store.

MekNode(path, obj, kind, depth, lineage)

A group or a dataset found by a MekQuery.

Store navigation#

MekStore(source)

Entry point to navigate a moveck pipe store from trial (c3d) names.

MekTrial(store, group_name, group)

A trial (c3d file) stored in Trials/<name>-<hash>.

MekProcessing(trial, environment_hash, ...)

Outputs of one pipeline run with one environment on one trial.

MekRun(run_id, group)

One execution of the pipe (a Logs/<run id> group).

MekJob(run, name, group)

Processing of one trial within a run (Logs/<run id>/<c3d>-<job id>).

library#

setDictToYamlAttribute(ds, dictIn, ...)

Store a dictionary as a YAML-formatted attribute of a group.

readYamlAttribute(ds, groupname, label)

Read a YAML-formatted attribute of a group.

gatherCycles(data_group, label)

Gather all cycle datasets of a label found in a group (searched recursively).

Pipe#

PipeSessionBuilderFilter(procedure)

Filter writing the YAML session file of a Pipe session.

PipeSessionSingleFileProcedure(trial_name[, ...])

Build a Pipe session from a single trial.

PipeSessionFlowUserSettingsProcedure(...)

Build a Pipe session from flow user settings (calibration and fitting trials).

build_trial(data_path, filename, type)

Build the description of a trial for a Pipe session file.

run_pipe(environment, dependencies_folder, ...)

Build and run the Pipe command.