Commit 531b871c authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Fixed two errors introduced in phase due to recent update

parent 544a0124
......@@ -164,6 +164,8 @@ def Goettingen_data_processor(config):
# start values
config['u_0']=ifft2(fft2(config['rt_data']*config['magn'])/config['FT_conv_kernel'])/config['beam']
print(config)
'''
figure(1);
subplot(2,2,1)
......
......@@ -41,10 +41,11 @@ class Phase(Problem):
else:
self.config['data_sq'] = self.config['data']
self.config['data'] = self.config['rt_data']
if('norm_data' in data):
config['norm_data_sq']= config['norm_data']
if('norm_data' in self.config):
self.config['norm_data_sq']= self.config['norm_data']
self.config['norm_data']=self.config['norm_rt_data']
tmp = self.config['data'].shape
if(tmp[0]==1 or tmp[1]==1):
self.config['data_sq'] = self.config['data_sq'].reshape((self.config['Nx'],self.config['Ny']))
#the prox algorithms work with the square root of the measurement:
......
Markdown is supported
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