Skip to content

Commit 619d07e

Browse files
committed
Update examples.py
1 parent 53c5f1e commit 619d07e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dlclivegui/processors/examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def process(self, pose, **kwargs):
161161
# Calculate head angle relative to body
162162
cross = body_axis[0] * head_axis[1] - head_axis[0] * body_axis[1]
163163
sign = copysign(1, cross) # Positive when looking left
164-
sign = copysign(1, cross)
164+
165165
try:
166166
head_angle = acos(body_axis @ head_axis) * sign
167167
except ValueError:
@@ -331,7 +331,7 @@ def process(self, pose, **kwargs):
331331
# Calculate head angle relative to body
332332
cross = body_axis[0] * head_axis[1] - head_axis[0] * body_axis[1]
333333
sign = copysign(1, cross) # Positive when looking left
334-
sign = copysign(1, cross)
334+
335335
try:
336336
head_angle = acos(body_axis @ head_axis) * sign
337337
except ValueError:

0 commit comments

Comments
 (0)