Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
747f275d
Commit
747f275d
authored
May 27, 2020
by
Philipp Arras
Browse files
Merge branch 'fix_random' into 'NIFTy_6'
fix nondeterministic test See merge request
!508
parents
59a72c4b
cda0e764
Pipeline
#75588
passed with stages
in 10 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/extra.py
View file @
747f275d
...
...
@@ -77,7 +77,7 @@ def _check_linearity(op, domain_dtype, atol, rtol):
return
fld1
=
from_random
(
op
.
domain
,
"normal"
,
dtype
=
domain_dtype
)
fld2
=
from_random
(
op
.
domain
,
"normal"
,
dtype
=
domain_dtype
)
alpha
=
np
.
random
.
random
()
# FIXME: this can break badly with MPI!
alpha
=
0.42
val1
=
op
(
alpha
*
fld1
+
fld2
)
val2
=
alpha
*
op
(
fld1
)
+
op
(
fld2
)
assert_allclose
(
val1
,
val2
,
atol
=
atol
,
rtol
=
rtol
)
...
...
Write
Preview
Markdown
is supported
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