mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-02 23:40:49 +02:00
refactor: small fix to int return
This commit is contained in:
@ -458,7 +458,7 @@ class SimulatedDataMonitor(SimulatedDataBase):
|
||||
elif noise == NoiseType.UNIFORM:
|
||||
noise = np.random.uniform(-1, 1) * noise_multiplier
|
||||
v += noise
|
||||
return v
|
||||
return v if v > 0 else v
|
||||
return v
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user