Commit 487973be authored by Russell Luke's avatar Russell Luke
Browse files

doing something wrong in DRl.py

parent 89d1333d
import sys
sys.path.append('../proxtoolbox/Problems/Phase')
sys.path.append('..')
import tasse_DRl_in
import tasse_ap_in
from phase import Phase
tasse = Phase(tasse_DRl_in.new_config)
tasse = Phase(tasse_ap_in.new_config)
tasse.solve()
tasse.show()
......@@ -62,13 +62,9 @@ def Goettingen_data_processor(config):
S[int(N/4+1+DX)-1:int(3/4*N-1-DX),int(N/4+1+DX)-1:int(3/4*N-1-DX)] = 1
config['magn'] = 1 # magnification factor
if config['fresnel_nr']*config['magn'] <= 2*np.pi*sqrt(config['Nx']*config['Ny']):
config['use_farfield_formula'] = 1
print('Using farfield formula.')
else:
config['use_farfield_formula'] = 0
print('Using nearfield formula.')
config['fresnel_nr'] = 0 # Frresnel number
config['use_farfield_formula'] = 1
print('Using farfield formula.')
# config['data_ball']=config['Nx']*config['Ny']*data_ball
config['rt_data']=M
......
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