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
f83738d3
Commit
f83738d3
authored
Feb 17, 2018
by
Martin Reinecke
Browse files
add test for issue
#222
parent
82444345
Pipeline
#25077
passed with stages
in 6 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_adjoint.py
View file @
f83738d3
...
...
@@ -31,6 +31,7 @@ _p_RG_spaces = [ift.RGSpace(19, distances=0.7),
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
))]
class
Consistency_Tests
(
unittest
.
TestCase
):
@
expand
(
product
(
_h_spaces
,
[
np
.
float64
,
np
.
complex128
]))
...
...
@@ -64,3 +65,8 @@ class Consistency_Tests(unittest.TestCase):
op
=
ift
.
DiagonalOperator
(
ift
.
Field
.
from_random
(
"normal"
,
sp
,
dtype
=
dtype
))
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
@
expand
(
product
(
_pow_spaces
,
[
np
.
float64
,
np
.
complex128
]))
def
testLaplace
(
self
,
sp
,
dtype
):
op
=
ift
.
LaplaceOperator
(
sp
)
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
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