summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Wrappers/Python/test/DemoRecIP.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/Wrappers/Python/test/DemoRecIP.py b/Wrappers/Python/test/DemoRecIP.py
index 48dc4fb..790e90e 100644
--- a/Wrappers/Python/test/DemoRecIP.py
+++ b/Wrappers/Python/test/DemoRecIP.py
@@ -36,16 +36,17 @@ class TV_FGP(BaseFunction):
return 0
def prox(self,x,Lipshitz):
pars = {'algorithm' : FGP_TV , \
- 'input' : x.as_array(),
- 'regularization_parameter':self.lambdaReg*Lipshitz, \
- 'number_of_iterations' :self.iterationsTV ,\
- 'tolerance_constant':1e-4,\
- 'TV_penalty': 0}
+ 'input' : x.as_array(),
+ 'regularization_parameter':self.lambdaReg*Lipshitz, \
+ 'number_of_iterations' :self.iterationsTV ,\
+ 'tolerance_constant':1e-4,\
+ 'TV_penalty': 0}
+
out = FGP_TV (pars['input'],
- pars['regularization_parameter'],
- pars['number_of_iterations'],
- pars['tolerance_constant'],
- pars['TV_penalty'])
+ pars['regularization_parameter'],
+ pars['number_of_iterations'],
+ pars['tolerance_constant'],
+ pars['TV_penalty'])
return out[0]
# read IP paper data into a dictionary