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
ift
NIFTy
Commits
f59c284f
Commit
f59c284f
authored
Jun 19, 2020
by
Reimar Leike
Browse files
Delete test as it is clear by linearity
parent
56387808
Pipeline
#76984
passed with stages
in 12 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_complex_consistency.py
View file @
f59c284f
...
...
@@ -52,24 +52,3 @@ def test_GaussianEnergy():
val2
=
complex_energy
(
fld
).
val
np
.
testing
.
assert_allclose
(
val1
,
val2
,
atol
=
10.
/
np
.
sqrt
(
Nsamp
))
def
test_WienerFilter
():
sp
=
ift
.
UnstructuredDomain
(
30
)
S
=
ift
.
ScalingOperator
(
sp
,
1.
)
R
=
ift
.
ContractionOperator
(
sp
,
None
)
N
=
ift
.
ScalingOperator
(
R
.
target
,
1
/
5
**
2
)
IC
=
ift
.
GradientNormController
(
iteration_limit
=
10
,
tol_abs_gradnorm
=
1e-7
)
D
=
ift
.
WienerFilterCurvature
(
R
,
N
,
S
,
IC
,
IC
).
inverse
s
=
S
.
draw_sample_with_dtype
(
dtype
=
np
.
complex128
)
d
=
R
(
s
)
+
N
.
draw_sample_with_dtype
(
dtype
=
np
.
complex128
)
j
=
R
.
adjoint_times
(
N
.
inverse_times
(
d
))
m
=
D
(
j
)
# FIXME Redundant lines below
# sr = s.real
jr
=
j
.
real
mr
=
D
(
jr
)
# FIXME Redundant lines below
# si = s.imag
ji
=
j
.
imag
mi
=
D
(
ji
)
np
.
testing
.
assert_allclose
((
mr
+
mi
*
1.j
).
val
,
m
.
val
,
rtol
=
1e-7
)
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