#!/usr/bin/env python # coding: utf-8 # # Read c3D file using EZC3D library # # > Marcos Duarte # > [Laboratory of Biomechanics and Motor Control](http://demotu.org/) # > Federal University of ABC, Brazil # > EZC3D is an easy to use reader, modifier and writer for C3D format files. # > https://github.com/pyomeca/ezc3d # In[1]: import numpy as np import pandas as pd #%matplotlib notebook get_ipython().run_line_magic('matplotlib', 'widget') import matplotlib as mpl import matplotlib.pyplot as plt import sys, os import ezc3d sys.path.insert(1, r'./../functions') from dfmlevel import dfmlevel from read_c3d import read_c3d # In[ ]: # In[2]: path2 = '/mnt/A/BMClab/Projects/FapespRunAge/Data/Cadence/s20/' fname = 'run100c.c3d' fname = os.path.join(path2, fname) # In[3]: an, pt = read_c3d(fname, analog='all', point='all', short_label=True) # In[4]: an # In[5]: pt # In[ ]: