Skip to content

Commit 6668517

Browse files
authored
Merge pull request #1 from iteal/develop
Merge bug fix in Develop
2 parents fab7fd2 + 5fa136d commit 6668517

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tensorflow==2.2.0
1+
tensorflow==2.3.0
22
opencv-python==4.3.0.36
3-
numpy==1.19.0
3+
numpy==1.18.5
44
h5py==2.10.0
5-
scipy==1.4.1
5+
scipy==1.4.1

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:

wormpose/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.14"
1+
__version__ = "0.1.15"

0 commit comments

Comments
 (0)