-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init generator for pre and post ctf noise #883
base: devel
Are you sure you want to change the base?
Conversation
|
@@ -121,7 +121,8 @@ | |||
if self.noiseBefore>0: | |||
I=xmippLib.Image(fnIn) | |||
Idata = I.getData() | |||
I.setData(Idata+self.noiseBefore.get()*np.random.Generator.normal(size=Idata.shape)) | |||
generator = np.random.default_rng() |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
@@ -142,7 +143,8 @@ | |||
if self.noiseAfter>0: | |||
I=xmippLib.Image(fnOut) | |||
Idata = I.getData() | |||
I.setData(Idata+self.noiseAfter.get()*np.random.Generator.normal(size=Idata.shape)) | |||
generator = np.random.default_rng() |
Check notice
Code scanning / SonarCloud
Results that depend on random number generation should be reproducible Low
Fixes #882