Commit e5112f74 authored by markus.meier01's avatar markus.meier01
Browse files

Fixed bug in P_CDP

parent 69ccaaea
......@@ -7,7 +7,7 @@ Created on Mon Dec 14 12:53:43 2015
The "Algorithms"-module contains all algorithms provided by the ProxToolbox.
"""
#from algorithms import Algorithm
from .algorithms import Algorithm
from .AP import *
from .AP_expert import *
from .HPR import *
......
......@@ -11,11 +11,13 @@ class P_CDP(ProxOperator):
def __init__(self,config):
self.Masks = config['Masks']
self.data = config['data']
self.Ny = config['Ny']
self.Nx = config['Nx']
def work(self,u):
if (Nx==1) or (Ny==1):
if (self.Ny==1) or (self.Nx==1):
U = fft(self.Masks*u)
U0 = magproj(self.data,u)
u = ifft(U0)/self.Masks
......
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