Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
531b871c
Commit
531b871c
authored
Nov 06, 2017
by
alexander.dornheim
Browse files
Fixed two errors introduced in phase due to recent update
parent
544a0124
Changes
2
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/Phase/Goettingen_data_processor.py
View file @
531b871c
...
...
@@ -164,6 +164,8 @@ def Goettingen_data_processor(config):
# start values
config
[
'u_0'
]
=
ifft2
(
fft2
(
config
[
'rt_data'
]
*
config
[
'magn'
])
/
config
[
'FT_conv_kernel'
])
/
config
[
'beam'
]
print
(
config
)
'''
figure(1);
subplot(2,2,1)
...
...
proxtoolbox/Problems/Phase/phase.py
View file @
531b871c
...
...
@@ -41,10 +41,11 @@ class Phase(Problem):
else
:
self
.
config
[
'data_sq'
]
=
self
.
config
[
'data'
]
self
.
config
[
'data'
]
=
self
.
config
[
'rt_data'
]
if
(
'norm_data'
in
data
):
config
[
'norm_data_sq'
]
=
config
[
'norm_data'
]
if
(
'norm_data'
in
self
.
config
):
self
.
config
[
'norm_data_sq'
]
=
self
.
config
[
'norm_data'
]
self
.
config
[
'norm_data'
]
=
self
.
config
[
'norm_rt_data'
]
tmp
=
self
.
config
[
'data'
].
shape
if
(
tmp
[
0
]
==
1
or
tmp
[
1
]
==
1
):
self
.
config
[
'data_sq'
]
=
self
.
config
[
'data_sq'
].
reshape
((
self
.
config
[
'Nx'
],
self
.
config
[
'Ny'
]))
#the prox algorithms work with the square root of the measurement:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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