pyCGM2.Tools#
btkTools functions#
|
Retrieves analog signal names from a BTK acquisition. |
|
Retrieves marker names from a BTK acquisition. |
Retrieves a list of child sections from metadata. |
|
|
Sets all points to zero if the frame is not valid. |
|
Applies a rotation to the specified markers in the acquisition based on the global frame orientation. |
|
Renames markers based on the provided translators. |
|
Sets model outputs to zero if not a valid frame. |
|
Automatically detects and processes acquisitions with kinetic data. |
Converts all BTK analog data from a BTK acquisition to a Kinetics Toolkit timeseries. |
|
|
Converts BTK points of a specified type from a BTK acquisition to a Kinetics Toolkit timeseries. |
|
Constructs BTK acquisitions from a list of filenames located in a specified directory. |
|
Calculates the angle formed by three points at each frame in a BTK acquisition. |
|
Changes the subject name in the acquisition's metadata. |
|
Checks if force plates exist in the acquisition. |
|
Checks for gaps in marker data within the specified frame bounds. |
|
Checks the presence of specified markers in the acquisition. |
|
Checks the existence of specified metadata. |
|
Checks if multiple subjects are detected in the acquisition. |
|
Cleans a BTK acquisition by removing points with zero values across all frames. |
|
Removes events based on their labels. |
|
Removes specified points from the acquisition. |
|
Constructs a new marker from existing markers using a specified numpy method. |
|
Constructs a phantom marker (marker with zero values). |
|
Constructs phantom markers for a list of specified labels. |
|
Removes events with a specified context (e.g., Left, Right, General). |
|
Identifies markers with detected gaps in an acquisition. |
|
Finds valid frames to process based on marker data. |
|
Retrieves all analysis parameters from the BTK acquisition. |
|
Retrieves the ground reaction wrenches for force plates in the acquisition. |
|
Gets frame boundaries from a list of markers. |
|
Retrieves labels of scalar points from a BTK acquisition based on their description. |
Returns the number of force plates in the acquisition. |
|
Returns the count of different types of model outputs in the acquisition. |
|
|
Retrieves a specific analysis parameter from the BTK acquisition. |
|
Retrieves a scalar point from a BTK acquisition by its label. |
|
Retrieves the frame numbers of start and end events based on their context and labels. |
|
Gets valid frames of markers within the specified frame boundaries. |
|
Returns markers that are visible at a specific frame. |
|
Checks if the specified metadata child exists. |
|
Checks if an analog label exists in the acquisition. |
|
Checks if an event with the specified label and context exists in the acquisition. |
|
Checks if there is a gap (missing data) in the specified marker. |
|
Checks if kinetic data (force plate events) are present in the acquisition. |
|
Checks if a point is a phantom (i.e., zero point). |
|
Checks if a point (marker or model output) exists in the acquisition. |
|
Checks if a list of points exist in the acquisition. |
|
Removes all points from the acquisition except the specified ones. |
|
Applies an offset to convert marker units. |
|
Converts marker position data from a BTK acquisition to a numpy array. |
|
Updates the subject name for all events in the acquisition. |
|
Updates the subject name in the acquisition's metadata. |
|
Renames an existing event in a BTK acquisition. |
|
Appends or updates an analog output in the acquisition. |
|
Appends a new analysis parameter to the BTK acquisition. |
|
Appends or updates a point in the acquisition. |
|
Creates a new event in the BTK acquisition. |
|
Retrieves events from the acquisition based on label and context. |
|
Retrieves metadata information based on specified levels. |
|
Read a C3D file using BTK, with optional marker translation. |
|
Sets a value in the acquisition's metadata. |
|
Write a BTK acquisition instance to a C3D or other specified format. |
|
Sorts the events in the acquisition based on their time of occurrence. |
opensim tools functions#
|
Exports CGM kinematics outputs to a .mot file in OpenSim format. |
|
Creates a .mot file for foot reaction forces from a BTK acquisition. |
|
Extracts point values from an OpenSim MOT file. |
|
Extracts values from an OpenSim Storage file based on a specific label. |
|
Extracts point values from an OpenSim Storage object and transforms them to the lab referential. |
|
Transforms marker coordinates in a BTK acquisition from the lab referential to the OpenSim referential. |