Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
e5112f74
Commit
e5112f74
authored
Dec 09, 2019
by
markus.meier01
Browse files
Fixed bug in P_CDP
parent
69ccaaea
Changes
2
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Algorithms/__init__.py
View file @
e5112f74
...
...
@@ -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
*
...
...
proxtoolbox/ProxOperators/P_CDP.py
View file @
e5112f74
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment