mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2026-02-04 22:28:41 +01:00
fix: fix type conversion for SimCamera uniform noise
This commit is contained in:
@@ -691,6 +691,7 @@ class SimulatedDataCamera(SimulatedDataBase):
|
||||
return v
|
||||
if noise == NoiseType.UNIFORM:
|
||||
v += np.random.uniform(-noise_multiplier, noise_multiplier, v.shape)
|
||||
v[v <= 0] = 0
|
||||
return v
|
||||
if noise == NoiseType.NONE:
|
||||
return v
|
||||
|
||||
Reference in New Issue
Block a user