Skip to content

Commit

Permalink
Merge pull request #1 from iteal/develop
Browse files Browse the repository at this point in the history
Merge bug fix in Develop
  • Loading branch information
iteal committed Aug 7, 2020
2 parents fab7fd2 + 5fa136d commit 6668517
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tensorflow==2.2.0
tensorflow==2.3.0
opencv-python==4.3.0.36
numpy==1.19.0
numpy==1.18.5
h5py==2.10.0
scipy==1.4.1
scipy==1.4.1
2 changes: 1 addition & 1 deletion wormpose/pose/eigenworms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def theta_to_modes(theta: np.ndarray, eigenworms_matrix: np.ndarray) -> np.ndarr
:param eigenworms_matrix:
:return: the modes corresponding to the angles
"""
return eigenworms_matrix.dot(theta - np.mean(theta))
return (theta - np.mean(theta)).dot(eigenworms_matrix)


def modes_to_theta(modes: np.ndarray, eigenworms_matrix: np.ndarray) -> np.ndarray:
Expand Down
2 changes: 1 addition & 1 deletion wormpose/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.14"
__version__ = "0.1.15"

0 comments on commit 6668517

Please sign in to comment.