mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-01-16 23:29:21 +01: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