Skip to content

Commit b6d2eaa

Browse files
committed
TST: seed the noisy accelerometer and gyroscope fixtures
Following @zuorenchen's review note on #13, seed the remaining noisy sensor fixtures (noisy_rotated_accelerometer, noisy_rotated_gyroscope) the same way noisy_barometer already is, so the whole sensor suite is deterministic instead of relying on statistical tolerance bounds. Uses the seed argument added in #13.
1 parent e9ebff6 commit b6d2eaa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/fixtures/sensors/sensors_fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def noisy_rotated_accelerometer():
2424
cross_axis_sensitivity=0.5,
2525
consider_gravity=True,
2626
name="Accelerometer",
27+
seed=42,
2728
)
2829

2930

@@ -46,6 +47,7 @@ def noisy_rotated_gyroscope():
4647
cross_axis_sensitivity=0.5,
4748
acceleration_sensitivity=[0, 0.0008, 0.0017],
4849
name="Gyroscope",
50+
seed=42,
4951
)
5052

5153

0 commit comments

Comments
 (0)