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
9d14cc8b
Commit
9d14cc8b
authored
May 20, 2020
by
Philipp Arras
Browse files
Add another test
parent
d6cbfa26
Pipeline
#75306
failed with stages
in 3 minutes and 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
test/test_operators/test_correlated_fields.py
View file @
9d14cc8b
...
...
@@ -36,7 +36,6 @@ def _stats(op, samples):
ift
.
HPSpace
(
8
),
ift
.
GLSpace
(
4
)])
@
pmp
(
'N'
,
[
0
,
2
])
def
testAmplitudesInvariants
(
sspace
,
N
):
fsspace
=
ift
.
RGSpace
((
12
,),
(
0.4
,))
dofdex1
,
dofdex2
,
dofdex3
=
None
,
None
,
None
if
N
==
2
:
...
...
@@ -55,6 +54,8 @@ def testAmplitudesInvariants(sspace, N):
for
ampl
in
fa
.
normalized_amplitudes
:
ift
.
extra
.
check_jacobian_consistency
(
ampl
,
ift
.
from_random
(
ampl
.
domain
),
ntries
=
10
)
ift
.
extra
.
check_jacobian_consistency
(
op
,
ift
.
from_random
(
op
.
domain
),
ntries
=
10
)
samples
=
[
ift
.
from_random
(
op
.
domain
)
for
_
in
range
(
100
)]
tot_flm
,
_
=
_stats
(
fa
.
total_fluctuation
,
samples
)
...
...
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