Skip to content

Instantly share code, notes, and snippets.

@romainmartinez
Created November 1, 2018 14:50
Show Gist options
  • Save romainmartinez/b72fb51f728839820b1e4a0d161200d5 to your computer and use it in GitHub Desktop.
Save romainmartinez/b72fb51f728839820b1e4a0d161200d5 to your computer and use it in GitHub Desktop.
# $ conda create -n test
# $ conda create -n test pyomeca -c pyomeca
from pathlib import Path
from pyomeca import Markers3d, Analogs3d
DATA_FOLDER = Path("/home/romain/Documents/codes/pyomeca/tests/data")
MARKERS_CSV = DATA_FOLDER / 'markers.csv'
MARKERS_ANALOGS_C3D = DATA_FOLDER / 'markers_analogs.c3d'
ANALOGS_CSV = DATA_FOLDER / 'analogs.csv'
markers_1 = Markers3d.from_csv(MARKERS_CSV, first_row=5, first_column=2, header=2,
idx=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], prefix=':')
print(markers_1[0, :, 0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment