Skip to content

Commit

Permalink
Inverse calculation bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezrivera committed Dec 21, 2021
1 parent 27ad651 commit d39446c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="linear_transforms",
version="1.0.0.post2",
version="1.0.0.post3",
author="Antonio Lopez Rivera",
author_email="[email protected]",
description="Python coordinate frame transform library",
Expand Down
2 changes: 1 addition & 1 deletion transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def I(self):
inv_matrix = self.matrix.T
# Negative angles
for param in self.params:
inv_matrix.subs(param, -param)
inv_matrix = inv_matrix.subs(param, f'-{param}')
return M(matrix=inv_matrix, params=self.params)

def diff(self):
Expand Down

0 comments on commit d39446c

Please sign in to comment.