Commit 864005dd authored by Andreas Freise's avatar Andreas Freise
Browse files

udpating internal names to grid class

parent e8052758
...@@ -106,18 +106,18 @@ class grid(): ...@@ -106,18 +106,18 @@ class grid():
# of complex beam amplitudes. Also contain also data structures for # of complex beam amplitudes. Also contain also data structures for
# FFT propagation # FFT propagation
def __init__ (self,xpoints, ypoints, xsize, ysize, xoffset, yoffset): def __init__ (self, _xpoints, _ypoints, _xlength, _ylength, _xoffset, _yoffset):
self.xpoints=xpoints self.xpoints=_xpoints # [number of tiles]
self.ypoints=ypoints self.ypoints=_ypoints # [number of tiles]
self.xsize=xsize self.xsize=_xlength # [m]
self.ysize=ysize self.ysize=_ylength # [m]
self.xoffset=xoffset self.xoffset=_xoffset # [m]
self.yoffset=yoffset self.yoffset=_yoffset # [m]
# compute x and y axis # compute x and y axis
self.xstep=self.xsize/self.xpoints self.xstep=self.xsize/self.xpoints # [m]
self.ystep=self.ysize/self.ypoints self.ystep=self.ysize/self.ypoints # [m]
xvector= np.arange(self.xpoints) xvector= np.arange(self.xpoints)
yvector= np.arange(self.ypoints) yvector= np.arange(self.ypoints)
self.xaxis=-self.xsize/2.0 + self.xstep/2.0 + xvector*self.xstep + self.xoffset self.xaxis=-self.xsize/2.0 + self.xstep/2.0 + xvector*self.xstep + self.xoffset
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment