Commit dd9d6c2a authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Replaced pi by np.pi in Goettingen_data_processor

parent 953ce210
......@@ -74,7 +74,7 @@ def Goettingen_data_processor(config):
# wavelength [m]
lambd = 12.398/E*1E-10
k = 2*pi/lambd
k = 2*np.pi/lambd
# distance source-sample [m]
z1 = 7.48e-3
......@@ -106,8 +106,8 @@ def Goettingen_data_processor(config):
# [X_det,Y_det] = meshgrid(dx_det*((1:1:Nx)-floor(Nx/2)-1),dy_det*((1:1:Ny)-floor(Ny/2)-1));
# grid conversion in q-space
dqx = 2*pi/(Nx*dx)
dqy = 2*pi/(Ny*dy)
dqx = 2*np.pi/(Nx*dx)
dqy = 2*np.pi/(Ny*dy)
[Qx,Qy] = np.meshgrid(dqx*(range(Nx)-floor(Nx/2)-1),dqy*(range(Ny)-floor(Ny/2)-1))
......@@ -118,7 +118,7 @@ def Goettingen_data_processor(config):
config['use_farfield_formula']=false
config['Nx']=Nx
config['Ny']=Ny
config['fresnel_nr'] = 1*2*pi*Nx # Fresnel number
config['fresnel_nr'] = 1*2*np.pi*Nx # Fresnel number
config['magn']=1 # magnification factor (should this be M above, or
# is it okay since the demagnified pixel size is used?)
......
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