Skip to content

Commit

Permalink
Update protocol_simulate_ctf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
albertmena authored May 13, 2024
1 parent b147c99 commit 3df1bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmipp3/protocols/protocol_simulate_ctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def simulateStep(self):
if self.noiseBefore>0:
I=xmippLib.Image(fnIn)
Idata = I.getData()
I.setData(Idata+self.noiseBefore.get()*np.random.normal(size=Idata.shape))
I.setData(Idata+self.noiseBefore.get()*np.numpy.random.Generator.normal(size=Idata.shape))
I.write(fnOut)
fnIn=fnOut

Expand All @@ -139,7 +139,7 @@ def simulateStep(self):
if self.noiseAfter>0:
I=xmippLib.Image(fnOut)
Idata = I.getData()
I.setData(Idata+self.noiseAfter.get()*np.random.normal(size=Idata.shape))
I.setData(Idata+self.noiseAfter.get()*np.random.Generator.normal(size=Idata.shape))
I.write(fnOut)

newCTF = CTFModel()
Expand Down

0 comments on commit 3df1bb5

Please sign in to comment.