Skip to content

Commit

Permalink
Fix setting of array in method rotate_by() of class QuaternionArray.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayitzin committed Sep 6, 2023
1 parent c7cb329 commit e5fc27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ahrs/common/quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,7 @@ def rotate_by(self, q: np.ndarray, inplace: bool = False, order: str = 'H') -> n
qQ[:, 3] = q[0]*self.z + q[1]*self.y - q[2]*self.x + q[3]*self.w
qQ /= np.linalg.norm(qQ, axis=1)[:, None]
if inplace:
self.array = qQ
self.array[:] = qQ
return None
return qQ

Expand Down

0 comments on commit e5fc27f

Please sign in to comment.