Skip to content

Commit

Permalink
Merge pull request #881 from I2PC/jmk_sim_ctf_noise
Browse files Browse the repository at this point in the history
fix simulate ctf pre-CTF noise np.numpy
  • Loading branch information
albertmena authored Jan 20, 2025
2 parents 04de629 + 050863a commit 2cc7272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmipp3/protocols/protocol_simulate_ctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def simulateStep(self):
if self.noiseBefore>0:
I=xmippLib.Image(fnIn)
Idata = I.getData()
I.setData(Idata+self.noiseBefore.get()*np.numpy.random.Generator.normal(size=Idata.shape))
I.setData(Idata+self.noiseBefore.get()*np.random.Generator.normal(size=Idata.shape))
I.write(fnOut)
fnIn=fnOut

Expand Down

0 comments on commit 2cc7272

Please sign in to comment.