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
a14986b7
Commit
a14986b7
authored
Mar 01, 2018
by
Philipp Arras
Browse files
Fix test
parent
12219de3
Pipeline
#25640
passed with stage
in 11 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_energies/test_noise.py
View file @
a14986b7
...
...
@@ -73,7 +73,7 @@ class Noise_Energy_Tests(unittest.TestCase):
inverter
=
ift
.
ConjugateGradient
(
IC
)
S
=
ift
.
create_power_operator
(
hspace
,
power_spectrum
=
_flat_PS
)
D
=
ift
.
library
.
NonlinearWienerFilterEnergy
(
C
=
ift
.
library
.
NonlinearWienerFilterEnergy
(
position
=
xi
,
d
=
d
,
Instrument
=
R
,
...
...
@@ -84,10 +84,9 @@ class Noise_Energy_Tests(unittest.TestCase):
S
=
S
,
inverter
=
inverter
).
curvature
energy0
=
ift
.
library
.
NoiseEnergy
(
position
=
eta0
,
d
=
d
,
xi
=
xi
,
D
=
D
,
t
=
tau
,
Instrument
=
R
,
alpha
=
alpha
,
q
=
q
,
Distributor
=
Dist
,
nonlinearity
=
f
,
ht
=
ht
,
samples
=
10
)
res_sample_list
=
[
d
-
R
(
f
(
ht
(
C
.
draw_sample
()
+
xi
)))
for
_
in
range
(
10
)]
energy0
=
ift
.
library
.
NoiseEnergy
(
eta0
,
alpha
,
q
,
res_sample_list
)
energy1
=
energy0
.
at
(
eta1
)
a
=
(
energy1
.
value
-
energy0
.
value
)
/
eps
...
...
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