From da843a6fc8f7085f997411b6454380da758b6e36 Mon Sep 17 00:00:00 2001 From: davidpagnon Date: Mon, 30 Oct 2023 14:28:48 +0100 Subject: [PATCH] improve script --- Pose2Sim/Utilities/trc_Zup_to_Yup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pose2Sim/Utilities/trc_Zup_to_Yup.py b/Pose2Sim/Utilities/trc_Zup_to_Yup.py index 115ae7c..ffab180 100644 --- a/Pose2Sim/Utilities/trc_Zup_to_Yup.py +++ b/Pose2Sim/Utilities/trc_Zup_to_Yup.py @@ -63,12 +63,12 @@ def trc_Zup_to_Yup_func(*args): frames_col, time_col = trc_df.iloc[:,0], trc_df.iloc[:,1] Q_coord = trc_df.drop(trc_df.columns[[0, 1]], axis=1) - # Y->Z, Z->-Y + # Y->Z, Z->Y cols = list(Q_coord.columns) # cols = np.array([[cols[i*3+1],cols[i*3+2],cols[i*3]] for i in range(int(len(cols)/3))]).flatten() # X->Y, Y->Z, Z->X cols = np.array([[cols[i*3],cols[i*3+2],cols[i*3+1]] for i in range(int(len(cols)/3))]).flatten() # Y->Z, Z->-Y Q_Yup = Q_coord[cols] - Q_Yup.iloc[:,2::3] = - Q_Yup.iloc[:,2::3] + # Q_Yup.iloc[:,2::3] = - Q_Yup.iloc[:,2::3] # write file with open(trc_yup_path, 'w') as trc_o: