Extensions#

Kinetics Toolkit provides very generic functions that should apply to a wide variety of use cases. For more specific use cases, or to quickly develop and share new features, we provide a simple extension mechanism.

Installing extensions#

Here are links to known extensions, where you can find a detailed description, tutorials, and installation procedure. Please contact us to add your own extension to this list.

  • n3d: Provide the read_n3d function to read Optotrak n3d acquisition files.

  • pushrimkinetics: Provide functions to process kinetic data from instrumented wheelchair wheels. Replaces the former ktk.pushrimkinetics module that is being moved out from the core library.

Using extensions#

Use ktk.import_extensions to import all installed extensions into the ktk.ext namespace. For example, if you installed the pushrimkinetics extension above, then its functions will be available as ktk.ext.pushrimkinetics.read_smartwheel(), ktk.ext.pushrimkinetics.calculate_power(), etc.

If you imported Kinetics Toolkit in lab mode, the extensions are already imported. There is no need to use ktk.import_extensions.

Developing extensions#

Please consult Developing extensions to learn how to develop and share your own extensions.