pyCGM_Single.pycgmIO

Description

This file is used for the input and output of pycgm functions.

Functions

combineDataDict(values, labels)

Converts two lists of values and labels to a dictionary.

cos(x, /)

Return the cosine of x (measured in radians).

createMotionDataDict(labels, data)

Creates an array of motion capture data given labels and data.

createVskDataDict(labels, data)

Creates a dictionary of vsk file values from labels and data.

dataAsArray(data)

Converts a dictionary of markers and their corresponding x, y, and z coordinate values to an array of dictionaries.

dataAsDict(data[, npArray])

Converts frame-by-frame motion capture data to a dictionary.

loadC3D(filename)

Open and load a C3D file of motion capture data

loadCSV(filename)

Open and load a CSV file of motion capture data.

loadData(filename[, rawData])

Loads motion capture data from a csv or c3d file.

loadEZC3D(filename)

Use c3dez to load a c3d file.

loadVSK(filename[, dict])

Open and load a vsk file.

make_sure_path_exists(path)

Creates a file path.

markerKeys()

A list of marker names.

sin(x, /)

Return the sine of x (measured in radians).

smKeys()

A list of segment labels.

splitDataDict(motionData)

Splits an array of motion capture data into separate labels and data.

splitMotionDataDict(motiondata)

Splits an array of motion capture data into separate labels and data.

splitVskDataDict(vsk)

Splits a dictionary of vsk file values into labels and data arrays

sqrt(x, /)

Return the square root of x.

writeKinetics(CoM_output, kinetics)

Uses numpy.save to write kinetics data as an .npy file.

writeResult(data, filename, **kargs)

Writes the result of the calculation into a csv file.