Skip to content

Commit 7d2ffad

Browse files
committed
TST: correct matrix transpose
1 parent dbc6c9c commit 7d2ffad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/test_sensor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def test_rotation_matrix(noisy_rotated_accelerometer):
7676
[0.7499999999999999, 0.43301270189221946, 0.5000000000000001],
7777
]
7878
)
79-
rotation_matrix = np.array(noisy_rotated_accelerometer.rotation_sensor_to_body.components)
79+
rotation_matrix = np.array(
80+
noisy_rotated_accelerometer.rotation_sensor_to_body.components
81+
)
8082
assert np.allclose(expected_matrix, rotation_matrix, atol=1e-8)
8183

8284

@@ -291,7 +293,7 @@ def test_noisy_rotated_accelerometer(noisy_rotated_accelerometer, example_plain_
291293
euler313_to_quaternions(*np.deg2rad([60, 60, 60]))
292294
)
293295
total_rotation = sensor_rotation @ cross_axis_sensitivity
294-
rocket_rotation = Matrix.transformation(U[6:10])
296+
rocket_rotation = Matrix.transformation(U[6:10]).transpose
295297
# expected measurement without noise
296298
ax, ay, az = total_rotation @ (rocket_rotation @ acceleration)
297299
# expected measurement with constant bias

0 commit comments

Comments
 (0)