pyCGM2.Utils#
files functions#
| 
 | Concatenate multiple Excel files into a single Excel file. | 
| 
 | Copy and paste a file from a source to a destination. | 
| 
 | Copy and paste a directory from a source to a destination. | 
| 
 | Copy a session folder, optionally including only selected files. | 
| 
 | Create a new directory. | 
| 
 | Delete a directory. | 
| 
 | Retrieve all C3D files from a directory, optionally filtering by text within filenames. | 
| 
 | Extract the directory path from a full path. | 
| 
 | Get all subdirectories within a folder. | 
| 
 | Get the creation date of a file. | 
| 
 | Extract the filename from a full path. | 
| 
 | Retrieve all files with a specific extension from a directory. | 
| 
 | Retrieve marker weights for kinematic fitting from a specified file. | 
| 
 | Return required and optional anthropometric parameters from a given dictionary. | 
| 
 | Retrieve anthropometric data from a specified file. | 
| 
 | Retrieve CGM marker translators from a specified file. | 
| 
 | Check if a string is valid JSON. | 
| 
 | Check if a string is valid YAML. | 
| 
 | Load a pyCGM2 analysis instance from a file. | 
| 
 | Load a pyCGM2 model instance from a file. | 
| 
 | Load pyCGM2 model settings from a specified file. | 
| 
 | Load a set of anthropometric parameters (mp file). | 
| 
 | Load settings from a specified file. | 
| 
 | Open a JSON or YAML file and return its contents as a dictionary. | 
| 
 | Open a JSON file and return its contents as a dictionary. | 
| 
 | Open a serialized (pickle) file and return its contents. | 
| 
 | Open a YAML file and return its contents as a dictionary. | 
| 
 | Read a string content in JSON or YAML format and return it as a dictionary. | 
| 
 | Read an XML file and parse its contents. | 
| 
 | Rename a file. | 
| 
 | Save a pyCGM2 analysis instance to a file. | 
| 
 | Save a dictionary as a JSON file. | 
| 
 | Save a pyCGM2 model instance to a file. | 
| 
 | Save anthropometric parameters as a JSON file. | 
| 
 | Serialize an object and save it as a pickle file. | 
| 
 | Save a dictionary as a YAML file. | 
| 
 | Attempt to parse a string with a given loader and catch specific errors. | 
utils functions#
| 
 | Check if all elements in a list are similar. | 
| 
 | Get a similar element from a list. | 
| 
 | Homogenize arguments by merging positional and keyword arguments into a single dictionary. | 
| 
 | Check if a value is within a specified range. | 
| 
 | Encode a unicode variable to a specified encoding format. | 
| 
 | Convert a text string to a boolean value. | 
