Skip to content
GitLab
Menu
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
9fdb14a2
Commit
9fdb14a2
authored
Mar 22, 2020
by
Martin Reinecke
Browse files
relax accuracy criteria
parent
ad0ecc7f
Pipeline
#71168
failed with stages
in 11 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_gaussian_energy.py
View file @
9fdb14a2
...
...
@@ -45,7 +45,6 @@ def test_gaussian_energy(space, nonlinearity, noise, seed):
pspace
=
ift
.
PowerSpace
(
hspace
,
binbounds
=
binbounds
)
Dist
=
ift
.
PowerDistributor
(
target
=
hspace
,
power_space
=
pspace
)
xi0
=
ift
.
Field
.
from_random
(
domain
=
hspace
,
random_type
=
'normal'
)
ift
.
random
.
pop_sseq
()
def
pspec
(
k
):
return
1
/
(
1
+
k
**
2
)
**
dim
...
...
@@ -71,4 +70,5 @@ def test_gaussian_energy(space, nonlinearity, noise, seed):
energy
=
ift
.
GaussianEnergy
(
d
,
N
)
@
d_model
()
ift
.
extra
.
check_jacobian_consistency
(
energy
,
xi0
,
ntries
=
10
,
tol
=
5e-8
)
energy
,
xi0
,
ntries
=
10
,
tol
=
1e-6
)
ift
.
random
.
pop_sseq
()
Write
Preview
Supports
Markdown
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