You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sensor noise (white noise and random-walk bias drift in InertialSensor
and ScalarSensor, plus the GNSS position/velocity accuracy) was drawn
from the global numpy RNG. That made it impossible to reproduce from a
seed, and unsafe under multiprocess where workers share the global state.
Add a seed argument to the sensor constructors, draw all noise from a
per-instance numpy Generator, and re-create it in _reset so each flight
replays the same sequence from the same seed. seed=None keeps the
random-by-default behaviour but per instance, so it no longer touches the
global RNG, matching how StochasticModel and MonteCarlo already seed.
Adds tests/unit/sensors/test_sensor_seeding.py.
0 commit comments