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
13f0d6d5
Commit
13f0d6d5
authored
May 06, 2021
by
Gordian Edenhofer
Browse files
test_correlated_fields.py: Amend test for no zm
parent
692f4322
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_correlated_fields.py
View file @
13f0d6d5
...
...
@@ -62,11 +62,12 @@ def testDistributor(dofdex, seed):
@
pmp
(
'total_N'
,
[
0
,
1
,
2
])
@
pmp
(
'offset_std'
,
[
None
,
(
1
,
1
)])
@
pmp
(
'asperity'
,
[
None
,
(
1
,
1
)])
@
pmp
(
'flexibility'
,
[
None
,
(
1
,
1
)])
@
pmp
(
'ind'
,
[
None
,
1
])
@
pmp
(
'matern'
,
[
True
,
False
])
def
test_init
(
total_N
,
asperity
,
flexibility
,
ind
,
matern
):
def
test_init
(
total_N
,
offset_std
,
asperity
,
flexibility
,
ind
,
matern
):
if
flexibility
is
None
and
asperity
is
not
None
:
pytest
.
skip
()
cfg
=
1
,
1
...
...
@@ -81,7 +82,7 @@ def test_init(total_N, asperity, flexibility, ind, matern):
cfm
.
add_fluctuations_matern
(
ift
.
RGSpace
(
4
),
*
(
3
*
[
cfg
]))
else
:
cfm
.
add_fluctuations
(
ift
.
RGSpace
(
4
),
*
(
4
*
[
cfg
]),
index
=
ind
)
cfm
.
set_amplitude_total_offset
(
0
,
cfg
,
dofdex
=
dofdex
)
cfm
.
set_amplitude_total_offset
(
0
,
offset_std
,
dofdex
=
dofdex
)
cfm
.
finalize
(
prior_info
=
0
)
...
...
@@ -149,7 +150,7 @@ def testAmplitudesInvariants(sspace, N):
@
pmp
(
'seed'
,
[
42
,
31
])
@
pmp
(
'domain'
,
spaces
)
@
pmp
(
'without'
,
((
'asperity'
,
),
(
'flexibility'
,
),
(
'flexibility'
,
'asperity'
)))
@
pmp
(
'without'
,
(
(
'offset_std'
,
),
(
'asperity'
,
),
(
'flexibility'
,
),
(
'flexibility'
,
'asperity'
)))
def
test_complicated_vs_simple
(
seed
,
domain
,
without
):
with
ift
.
random
.
Context
(
seed
):
offset_mean
=
_rand
()
...
...
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