pyCGM_Single.pyCGM_Helpers.getfilenames

pyCGM_Single.pyCGM_Helpers.getfilenames(x=1)

Get Filenames for sample data.

Parameters
xint, optional

A flag (1, 2, or 3) that denotes which variation of files to retrieve. Default is 1 if not given. 1 denotes the files in the 59993_Frame directory. 2 denotes the files in the ROM directory. 3 denotes the files in the Sample_2 directory.

Returns
dynamic_trial, static_trial, vsk_file, outputfile, CoM_outputtuple

Returns the respective filenames in the relative path.

Examples

>>> import os 
>>> from .pyCGM_Helpers import getfilenames
>>> getfilenames() 
('SampleData/59993_Frame/59993_Frame_Dynamic.c3d',
'SampleData/59993_Frame/59993_Frame_Static.c3d',
'SampleData/59993_Frame/59993_Frame_SM.vsk',
'SampleData/59993_Frame/pycgm_results.csv',
'SampleData/59993_Frame/CoM')
>>> getfilenames(2) 
('SampleData/ROM/Sample_Dynamic.c3d',
'SampleData/ROM/Sample_Static.c3d',
'SampleData/ROM/Sample_SM.vsk',
'SampleData/ROM/pycgm_results.csv',
'SampleData/ROM/CoM')
>>> getfilenames(3) 
('SampleData/Sample_2/RoboWalk.c3d',
'SampleData/Sample_2/RoboStatic.c3d',
'SampleData/Sample_2/RoboSM.vsk',
'SampleData/Sample_2/pycgm_results.csv',
'SampleData/Sample_2/CoM')