pyCGM2.flow#

Filters#

FlowEdittingFilter(data_path, modelVersion)

Filter writing the flow user settings file (cgm#i-settings) of a session.

Template#

The template of the flow user settings file (cgm#i-settings.tpl) is not distributed with pyCGM2. It is searched in this order:

  1. the --template argument of pyCGM2 FLOW Edit (or FlowEdittingFilter.setTemplate());

  2. the PYCGM2_FLOW_TEMPLATE environment variable;

  3. the user folder %APPDATA%/pyCGM2/templates/;

  4. the Settings/templates/ folder of pyCGM2 (development copy).

findFlowTemplate([template_pathFilename])

Find the template of the flow user settings file.

getUserTemplateFolder()

Return the user folder of the pyCGM2 templates (%APPDATA%/pyCGM2/templates).

Procedures#

AbstractFlowProcedure()

abstract procedure

EclipseFlowProcedure()

Procedure collecting session details (subject parameters, calibration and fitting trials, conditions, MVC) from the vsk and Eclipse enf files.

Settings handler#

list_conditions(data)

Return the available condition identifiers.

get_condition(settings, condition_id)

Return a condition of the protocol.

get_condition_details(data, condition_id)

Return the metadata of a condition.

get_trials_by_condition(data, condition_id)

Return the fitting trial files of a condition.

get_emg_trials_by_condition(data, condition_id)

Return the trial files with EMG of a condition.

get_emg_configuration(settings, condition_id)

Return the EMG configuration of a condition (channels with an assigned muscle).

get_emg_processing(settings, condition_id[, ...])

Return the EMG processing settings of a condition.

get_EmgRepresentative(settings, condition_id)

Return the EMG representative trial of a condition.

get_FittingTrials(settings)

Return the fitting trial files.

get_CalibrationTrials(settings)

Return the static (calibration) trial files.

build_session_conditions_dataframe(settings)

Build a dataframe of the conditions of a session.

emg_ordered_dict_to_list(emg_odict)

Convert the EMG channels of an EMG settings dictionary into a list.

homogeneizeTranslators(settings[, translators])

Apply the same marker translators to all calibration and fitting trials.

homogeneizeEmgSettings(settings[, emgSettings])