Commit 6ff02159 authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Deleted some print statments (used for testing), commented out @profile

parent 37fe1fe6
......@@ -51,10 +51,7 @@ def CDI_data_processor(config):
f = loadmat('../InputData/phase_retrieval/CDI_intensity.mat')
# diffraction pattern
print(f.keys())
dp = f['intensity']['img'][0,0]
print(dp.dtype)
print(dp.shape)
im = imshow(log10(dp))
colorbar(im)
......
......@@ -46,7 +46,7 @@ class ProxOperator:
raise NotImplementedError("This is just an abstract interface")
@profile
#@profile
def magproj(u, constr):
"""
Projection operator onto a magnitude constraint
......@@ -267,7 +267,7 @@ class Approx_P_JWST_Poisson(ProxOperator):
self.exp_illu = exp(1j*self.illumination_phase)*tile(self.indicator_ampl[...,None],(1,1,self.product_space_dimension-1))
self.exp_illu_minus = exp(-1j*self.illumination_phase)*tile(self.indicator_ampl[...,None],(1,1,self.product_space_dimension-1))
@profile
#@profile
def work(self,u):
TOL2 = self.TOL2;
epsilon = self.epsilon;
......
......@@ -13,5 +13,6 @@ from .FFT import *
from .IFFT import *
from .Resize import *
from .PoissonRan import *
from .ZeroPad import *
__all__ = ["Laplace_matrix","procrustes", "FFT", "IFFT", "Resize", "PoissonRan"]
__all__ = ["Laplace_matrix","procrustes", "FFT", "IFFT", "Resize", "PoissonRan", "ZeroPad"]
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