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
78243d0d
Commit
78243d0d
authored
Apr 22, 2020
by
Matthijs
Browse files
P_M_masked tested, should properly apply the mask in Fourier space now
parent
8b1077ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/ProxOperators/P_M.py
View file @
78243d0d
...
...
@@ -69,6 +69,7 @@ class P_M_masked(P_M):
-------
array_like - p_M: the projection IN THE PHYSICAL (time) DOMAIN
"""
constrained
=
super
(
P_M_masked
,
self
).
work
(
u
)
fourier_space_iterate
=
np
.
fft
.
fft2
(
u
,
axes
=
None
)
constrained
=
magproj
(
fourier_space_iterate
,
self
.
M
)
update
=
np
.
where
(
self
.
mask
,
u
,
constrained
)
return
update
return
np
.
fft
.
ifft2
(
update
,
axes
=
None
)
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