diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-02-21 14:01:13 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-02-21 14:01:13 +0000 |
commit | 21a0c8df055e15b8811adab03fe0a342aab1b052 (patch) | |
tree | b0862406b9289a30dbc5c66d1cc1d30e7b1fda19 | |
parent | 40a53995d3b283200f31a3402a6ae1016918ef78 (diff) | |
download | framework-21a0c8df055e15b8811adab03fe0a342aab1b052.tar.gz framework-21a0c8df055e15b8811adab03fe0a342aab1b052.tar.bz2 framework-21a0c8df055e15b8811adab03fe0a342aab1b052.tar.xz framework-21a0c8df055e15b8811adab03fe0a342aab1b052.zip |
minor changes
-rw-r--r-- | Wrappers/Python/test/DemoRecIP.py | 19 |
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 |