pyCGM_Single.Pipelines.segment_dict

pyCGM_Single.Pipelines.segment_dict()

Creates a dictionary of segments to marker names.

Returns
segmentDictdict

Dictionary of segments to marker names.

Examples

>>> result = segment_dict()
>>> expected = {'Head': ['RFHD', 'RBHD', 'LFHD', 'LBHD', 'REAR', 'LEAR'],
...             'Trunk': ['C7', 'STRN', 'CLAV', 'T10', 'RBAK', 'RSHO', 'LSHO'],
...             'Pelvis': ['SACR', 'RPSI', 'LPSI', 'LASI', 'RASI'],
...             'RThigh': ['RTHI', 'RTH2', 'RTH3', 'RTH4'],
...             'LThigh': ['LTHI', 'LTH2', 'LTH3', 'LTH4'],
...             'RShin': ['RTIB', 'RSH2', 'RSH3', 'RSH4'],
...             'LShin': ['LTIB', 'LSH2', 'LSH3', 'LSH4'],
...             'RFoot': ['RLFT1', 'RFT2', 'RMFT3', 'RLUP'],
...             'LFoot': ['LLFT1', 'LFT2', 'LMFT3', 'LLUP'],
...             'RHum': ['RMELB', 'RSHO', 'RUPA'],
...             'LHum': ['LMELB', 'LSHO', 'LUPA']}
>>> result == expected
True