Skip to content

Commit afa8fc0

Browse files
committed
Use C3DFileAdapter read extension in python to select different ForceLocations for expressing force plate data in read-in forces table.
1 parent e840875 commit afa8fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Bindings/Python/tests/test_DataAdapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_C3DFileAdapter(self):
3636
except AttributeError:
3737
# C3D support not available. OpenSim was not compiled with BTK.
3838
return
39-
tables = adapter.read(os.path.join(test_dir, 'walking2.c3d'))
39+
tables = adapter.read(os.path.join(test_dir, 'walking2.c3d'), 0)
4040
markers = tables['markers']
4141
forces = tables['forces']
4242

@@ -45,7 +45,7 @@ def test_C3DFileAdapter(self):
4545
assert forces.getNumRows() == 9992
4646
assert forces.getNumColumns() == 6
4747

48-
tables = adapter.read(os.path.join(test_dir, 'walking5.c3d'))
48+
tables = adapter.read(os.path.join(test_dir, 'walking5.c3d'), 1)
4949

5050
# Marker data read from C3D.
5151
markers = tables['markers']

0 commit comments

Comments
 (0)