mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-17 00:19:55 +02:00
Fix a bug in the incoherent probe mode update
This commit is contained in:
@@ -286,7 +286,8 @@ class FancyPtycho(CDIModel):
|
||||
|
||||
if len(self.weights[0].shape) == 0:
|
||||
# If a purely stable coherent illumination is defined
|
||||
prs = cmath.cmult(Ws[...,None,None,None,:],basis_prs)
|
||||
# No cmult because Ws is real in this case
|
||||
prs = Ws[...,None,None,None,None] * basis_prs
|
||||
else:
|
||||
# If a frame-by-frame weight matrix is defined
|
||||
# This takes the dot product of all the weight matrices with
|
||||
|
||||
@@ -300,7 +300,8 @@ class Multislice2DPtycho(CDIModel):
|
||||
|
||||
if len(self.weights[0].shape) == 0:
|
||||
# If a purely stable coherent illumination is defined
|
||||
prs = cmath.cmult(Ws[...,None,None,None,:],basis_prs)
|
||||
# No cmult because Ws is real in this case
|
||||
prs = Ws[...,None,None,None,None] * basis_prs
|
||||
else:
|
||||
# If a frame-by-frame weight matrix is defined
|
||||
# This takes the dot product of all the weight matrices with
|
||||
|
||||
Reference in New Issue
Block a user