Skip to content

Commit f0e213f

Browse files
authored
Fix wrong eigenmodes function
TODO add tests for this module
1 parent fe7e06c commit f0e213f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wormpose/pose/eigenworms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def theta_to_modes(theta: np.ndarray, eigenworms_matrix: np.ndarray) -> np.ndarr
2525
:param eigenworms_matrix:
2626
:return: the modes corresponding to the angles
2727
"""
28-
return eigenworms_matrix.dot(theta - np.mean(theta))
28+
return (theta - np.mean(theta)).dot(eigenworms_matrix)
2929

3030

3131
def modes_to_theta(modes: np.ndarray, eigenworms_matrix: np.ndarray) -> np.ndarray:

0 commit comments

Comments
 (0)