Commit 4ecbd133 authored by Russell Luke's avatar Russell Luke
Browse files

added a RunAll.py script

parent 3067b957
......@@ -21,6 +21,7 @@ setup.py: never touched this setup file
Proposed clean up:
Are both GUI folders needed? Are they working? -> Jochen
DRL June10,2020: do not include these in the new release
docs -> new documentation by Sylvain in future
Combine ReadMes
manual.pdf ?
......
import SetProxPythonPath
print("******************************\n")
print("* Starting Coffee demos *\n")
print("******************************\n")
print("\n")
print("\n")
from proxtoolbox.experiments.phase.CDI_Experiment import CDI_Experiment
CDI = CDI_Experiment(algorithm = 'CP', MAXIT = 5000, verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'AvP', verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'QNAvP', verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'DRl', verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'DRAP', lambda_0 = 0.02, lambda_max = 0.02, verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'CDRl', lambda_0 = 1.0, lambda_max = 1.0, MAXIT = 2000, verbose=0)
CDI.run()
CDI.show()
CDI = CDI_Experiment(algorithm = 'CDRl', lambda_0 = 0.9, lambda_max = 0.9, verbose=0)
CDI.run()
CDI.show()
print("\n")
print("\n")
print("**********************************************\n")
print("* Starting Siemens demos - no regularization *\n")
print("**********************************************\n")
print("\n")
from proxtoolbox.experiments.phase.Krueger_Experiment import Krueger_Experiment
Krueger = Krueger_Experiment(algorithm = 'AvP', verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'QNAvP', verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'CP', verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'DRl',
lambda_0 = 0.5, lambda_max = 0.5, verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'DRAP', verbose=0)
Krueger.run()
Krueger.show()
print("\n")
print("\n")
print("*******************************************\n")
print("* Starting Siemens demos - regularization *\n")
print("*******************************************\n")
print("\n")
print("Starting Siemens demos - regularization")
from proxtoolbox.experiments.phase.Krueger_Experiment import Krueger_Experiment
Krueger = Krueger_Experiment(algorithm = 'AvP', data_ball = 24, verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'QNAvP', data_ball = 20, verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'CP', data_ball = 20, verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'DRl', data_ball = 20,
lambda_0 = 0.5, lambda_max = 0.5, verbose=0)
Krueger.run()
Krueger.show()
Krueger = Krueger_Experiment(algorithm = 'DRAP', data_ball = 20, verbose=0)
Krueger.run()
Krueger.show()
print("\n")
print("\n")
print("*******************************************\n")
print("* Starting ptychography demos *\n")
print("*******************************************\n")
print("\n")
from proxtoolbox.experiments.ptychography.ptychographyExperiment import PtychographyExperiment
warmupParams = {
'algorithm': 'DRl',
'MAXIT': 10,
'TOL': 5e-5,
'lambda_0': 0.75,
'lambda_max': 0.75,
'lambda_switch': 20,
'data_ball': 1e-30,
'diagnostic': True,
'rotate': False,
'iterate_monitor_name': 'IterateMonitor',
'verbose': 1,
'graphics': 0,
'anim': 0
}
Pty = PtychographyExperiment(debug = False, warmup = True, MAXIT=10, warmup_params=warmupParams, verbose=0)
Pty.run()
Pty.show()
print("Test successfull")
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