Skip to content

Commit 251b603

Browse files
committed
Update
1 parent b5bbe5f commit 251b603

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

diffractsim/polychromatic_simulator.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,19 @@ def get_colors_at_image_plane(self, pupil, M, zi, z0, scale_factor = 1):
173173
174174
"""
175175

176+
177+
178+
for j in range(len(self.optical_elements)):
179+
self.E = self.E * self.optical_elements[j].get_transmittance(self.xx, self.yy, 0)
180+
181+
176182
# if the magnification is negative, the image is inverted
177183
if M < 0:
178184
self.E = bd.flip(self.E)
179185
M_abs = bd.abs(M)
180186

181187
self.E = self.E/M_abs
182188

183-
184-
for j in range(len(self.optical_elements)):
185-
self.E = self.E * self.optical_elements[j].get_transmittance(self.xx, self.yy, 0)
186-
187189
fft_c = bd.fft.fft2(self.E)
188190
c = bd.fft.fftshift(fft_c)
189191

0 commit comments

Comments
 (0)