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
Neel Shah
NIFTy
Commits
b1e900be
Commit
b1e900be
authored
Nov 07, 2019
by
Philipp Arras
Browse files
Add adjointness tests for new correlated field
parent
911f0095
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_adjoint.py
View file @
b1e900be
...
...
@@ -32,7 +32,11 @@ _p_RG_spaces = [
ift
.
RGSpace
((
1
,
2
,
3
,
6
),
distances
=
(
0.2
,
0.25
,
0.34
,
.
8
))
]
_p_spaces
=
_p_RG_spaces
+
[
ift
.
HPSpace
(
17
),
ift
.
GLSpace
(
8
,
13
)]
_pow_spaces
=
[
ift
.
PowerSpace
(
ift
.
RGSpace
((
17
,
38
),
harmonic
=
True
))]
_pow_spaces
=
[
ift
.
PowerSpace
(
ift
.
RGSpace
((
17
,
38
),
(
0.99
,
1340
),
harmonic
=
True
)),
ift
.
PowerSpace
(
ift
.
LMSpace
(
18
),
ift
.
PowerSpace
.
useful_binbounds
(
ift
.
LMSpace
(
18
),
False
))
]
pmp
=
pytest
.
mark
.
parametrize
dtype
=
list2fixture
([
np
.
float64
,
np
.
complex128
])
...
...
@@ -295,3 +299,21 @@ def testValueInserter(sp, seed):
ind
.
append
(
np
.
random
.
randint
(
0
,
ss
-
1
))
op
=
ift
.
ValueInserter
(
sp
,
ind
)
ift
.
extra
.
consistency_check
(
op
)
@
pmp
(
'sp'
,
_pow_spaces
)
def
testSlopeRemover
(
sp
):
op
=
ift
.
library
.
correlated_fields
.
_SlopeRemover
(
sp
)
ift
.
extra
.
consistency_check
(
op
)
@
pmp
(
'sp'
,
_pow_spaces
)
def
testTwoLogIntegrations
(
sp
):
op
=
ift
.
library
.
correlated_fields
.
_TwoLogIntegrations
(
sp
)
ift
.
extra
.
consistency_check
(
op
)
@
pmp
(
'sp'
,
_h_spaces
+
_p_spaces
+
_pow_spaces
)
def
testSpecialSum
(
sp
):
op
=
ift
.
library
.
correlated_fields
.
_SpecialSum
(
sp
)
ift
.
extra
.
consistency_check
(
op
)
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