much faster analysis

This commit is contained in:
davidpagnon 2024-06-07 14:11:19 +02:00
parent f474838ff8
commit cab870efe8

View File

@ -77,7 +77,8 @@ def get_marker_positions(motion_data, model, in_degrees=True):
value = motion_data_pd.loc[n,coord]*np.pi/180
else:
value = motion_data_pd.loc[n,coord]
model.getCoordinateSet().get(coord).setValue(state,value)
model.getCoordinateSet().get(coord).setValue(state,value, enforceContraints=False)
model.assemble(state)
# get marker positions
marker_positions += [np.array([marker_set.get(mk_name).findLocationInFrame(state, model.getGround()).to_numpy() for mk_name in marker_set_names]).flatten()]
marker_positions_pd = pd.DataFrame(marker_positions, columns=marker_set_names_xyz)