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
fcff492a
Commit
fcff492a
authored
Nov 16, 2017
by
alexander.dornheim
Browse files
Fixed a bug just commited
parent
4cd25477
Changes
1
Show whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/Phase/phase.py
View file @
fcff492a
...
...
@@ -76,8 +76,9 @@ class Phase(Problem):
proxoperators
[
0
]
=
'P_SP'
elif
self
.
config
[
'constraint'
]
==
'amplitude only'
:
proxoperators
[
0
]
=
'P_amp'
elif
(
strcmp
(
input
.
constraint
,
'phase on support'
))
proxoperators
[
0
]
=
'P_Amod'
elif
self
.
config
[
'constraint'
]
==
'phase on support'
:
pass
#proxoperators[0] ='P_Amod' currently not working in ProxPython
elif
self
.
config
[
'constraint'
]
==
'minimum amplitude'
:
proxoperators
[
0
]
=
'P_min_amp'
elif
self
.
config
[
'constraint'
]
==
'sparse'
:
...
...
@@ -88,7 +89,7 @@ class Phase(Problem):
proxoperators
[
0
]
=
'P_liftM'
proxoperators
[
2
]
=
'Approx_PM_Poisson'
# Patrick: This is just to monitor the change of phases!
if
self
.
config
[
'experiment'
]
==
'single diffraction'
:
if
self
.
config
[
'experiment'
]
==
'single diffraction'
or
self
.
config
[
'experiment'
]
==
'CDI'
:
if
self
.
config
[
'distance'
]
==
'far field'
:
if
self
.
config
[
'constraint'
]
==
'phaselift'
:
proxoperators
[
1
]
=
'P_Rank1'
;
...
...
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