-
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
extract_particles and simulate_ctf: fixes #774
Conversation
|
if self.noiseBefore>0: | ||
I=xmippLib.Image(fnIn) | ||
Idata = I.getData() | ||
I.setData(Idata+self.noiseBefore.get()*np.random.normal(size=Idata.shape)) |
Check notice
Code scanning / SonarCloud
numpy.random.Generator should be preferred to numpy.random.RandomState Low
if self.noiseAfter>0: | ||
I=xmippLib.Image(fnOut) | ||
Idata = I.getData() | ||
I.setData(Idata+self.noiseAfter.get()*np.random.normal(size=Idata.shape)) |
Check notice
Code scanning / SonarCloud
numpy.random.Generator should be preferred to numpy.random.RandomState Low
|
Simulate CTF can add noise before and after CTF.
Bug fix in the downsampling factor of extract particles