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
864005dd
Commit
864005dd
authored
Apr 13, 2015
by
Andreas Freise
Browse files
udpating internal names to grid class
parent
e8052758
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/fft.py
View file @
864005dd
...
...
@@ -106,18 +106,18 @@ class grid():
# of complex beam amplitudes. Also contain also data structures for
# FFT propagation
def
__init__
(
self
,
xpoints
,
ypoints
,
xsize
,
ysize
,
xoffset
,
yoffset
):
def
__init__
(
self
,
_
xpoints
,
_
ypoints
,
_xlength
,
_ylength
,
_
xoffset
,
_
yoffset
):
self
.
xpoints
=
xpoints
self
.
ypoints
=
ypoints
self
.
xsize
=
xsize
self
.
ysize
=
ysize
self
.
xoffset
=
xoffset
self
.
yoffset
=
yoffset
self
.
xpoints
=
_
xpoints
# [number of tiles]
self
.
ypoints
=
_
ypoints
# [number of tiles]
self
.
xsize
=
_xlength
# [m]
self
.
ysize
=
_ylength
# [m]
self
.
xoffset
=
_
xoffset
# [m]
self
.
yoffset
=
_
yoffset
# [m]
# compute x and y axis
self
.
xstep
=
self
.
xsize
/
self
.
xpoints
self
.
ystep
=
self
.
ysize
/
self
.
ypoints
self
.
xstep
=
self
.
xsize
/
self
.
xpoints
# [m]
self
.
ystep
=
self
.
ysize
/
self
.
ypoints
# [m]
xvector
=
np
.
arange
(
self
.
xpoints
)
yvector
=
np
.
arange
(
self
.
ypoints
)
self
.
xaxis
=-
self
.
xsize
/
2.0
+
self
.
xstep
/
2.0
+
xvector
*
self
.
xstep
+
self
.
xoffset
...
...
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