Skip to content

Commit

Permalink
angles
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoorlab committed Mar 25, 2024
1 parent 6aeb09f commit 27c32c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/napatrackmater/Trackmate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,8 +2912,8 @@ def cell_angular_change(vec_cell):
vec = np.asarray(vec_cell)
vec = vec / np.linalg.norm(vec)
num_dims = len(vec)
unit_vector = np.ones(num_dims)
unit_vector[-1] = 0
unit_vector = np.zeros(num_dims)
unit_vector[-1] = 1
unit_vector = unit_vector / np.linalg.norm(unit_vector)
theta = np.arccos(np.clip(np.dot(vec, unit_vector), -1.0, 1.0))
angle = np.rad2deg(theta)
Expand Down
4 changes: 2 additions & 2 deletions src/napatrackmater/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = version = "5.0.0"
__version_tuple__ = version_tuple = (5, 0, 0)
__version__ = version = "5.0.1"
__version_tuple__ = version_tuple = (5, 0, 1)

0 comments on commit 27c32c2

Please sign in to comment.