Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
4700be14
Commit
4700be14
authored
May 25, 2015
by
Sean Leavey
Browse files
Fixing bug with distance (variable 'L' not defined)
parent
c56b35f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/fft.py
View file @
4700be14
...
...
@@ -81,7 +81,7 @@ def FFT_scale_propagate(field, grid0, grid1, Lambda, distance, w0, w1, nr):
field
=
field
*
np
.
exp
(
-
1j
*
k
*
distance
)
*
np
.
exp
(
1j
*
plD
*
grid0
.
fft_ir_squared
)
field
=
np
.
fft
.
ifft2
(
field
)
# final scaling
field
=
field
*
w0
/
w1
*
np
.
exp
(
1j
*
grid1
.
r_squared
*
(
z0
+
L
)
/
(
2.0
*
z0
*
z0
))
field
=
field
*
w0
/
w1
*
np
.
exp
(
1j
*
grid1
.
r_squared
*
(
z0
+
distance
)
/
(
2.0
*
z0
*
z0
))
return
field
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment