From 8e9a4cd45cd2e79b2ab7e876b847778d36664cf6 Mon Sep 17 00:00:00 2001 From: mayitzin Date: Mon, 9 Oct 2023 17:43:25 +0200 Subject: [PATCH] Revert assertion of new QuaternionArray to use _assert_iterables(). --- ahrs/common/quaternion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahrs/common/quaternion.py b/ahrs/common/quaternion.py index 6f9bfc8..99bc14b 100644 --- a/ahrs/common/quaternion.py +++ b/ahrs/common/quaternion.py @@ -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}.")