Skip to content

Commit

Permalink
Revert assertion of new QuaternionArray to use _assert_iterables().
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayitzin committed Oct 9, 2023
1 parent 3091867 commit 8e9a4cd
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 @@ -2103,7 +2103,7 @@ def __new__(subtype, q: np.ndarray = None, versors: bool = True, order: str = 'H
q = np.atleast_2d(random_attitudes(q))

# Assert valid input
_assert_numerical_iterable(q, 'Quaternion Array')
_assert_iterables(q, 'Quaternion Array')
q = np.array(q, dtype=float)
if q.ndim != 2 or q.shape[-1] not in [3, 4]:
raise ValueError(f"Expected array to have shape (N, 4) or (N, 3), got {q.shape}.")
Expand Down

0 comments on commit 8e9a4cd

Please sign in to comment.