pyCGM_Single.pyCGM.createVskDataDict¶
-
pyCGM_Single.pyCGM.
createVskDataDict
(labels, data)¶ Creates a dictionary of vsk file values from labels and data.
- Parameters
- labelsarray
List of label names for vsk file values.
- dataarray
List of subject measurement values corresponding to the label names in labels.
- Returns
- vskdict
Dictionary of vsk file values. Dictionary keys correspond to names in labels and dictionary values correspond to values in data.
Examples
This example tests for dictionary equality through python instead of doctest since python does not guarantee the order in which dictionary elements are printed.
>>> labels = ['MeanLegLength', 'LeftKneeWidth', 'RightAnkleWidth'] >>> data = [940.0, 105.0, 70.0] >>> res = createVskDataDict(labels, data) >>> res == {'MeanLegLength':940.0, 'LeftKneeWidth':105.0, 'RightAnkleWidth':70.0} True