Skip to content
GitLab
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
4a92fe0e
Commit
4a92fe0e
authored
May 11, 2017
by
Pumpe, Daniel (dpumpe)
Browse files
update tests for DiagonalOperator
parent
8e485f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_diagonal_operator.py
View file @
4a92fe0e
...
...
@@ -6,26 +6,15 @@ from numpy.testing import assert_equal,\
assert_approx_equal
from
nifty
import
Field
,
\
RGSpace
,
\
LMSpace
,
\
HPSpace
,
\
GLSpace
,
\
DiagonalOperator
from
test.common
import
generate_spaces
from
itertools
import
product
from
test.common
import
expand
def
_get_spaces
():
rg_space
=
RGSpace
(
20
)
hp_space
=
HPSpace
(
nside
=
6
)
lm_space
=
LMSpace
(
lmax
=
10
)
gl_space
=
GLSpace
(
nlat
=
6
,
nlon
=
10
)
return
[
rg_space
,
hp_space
,
lm_space
,
gl_space
]
class
DiagonalOperator_Tests
(
unittest
.
TestCase
):
spaces
=
_
ge
t
_spaces
()
spaces
=
ge
nerate
_spaces
()
@
expand
(
product
(
spaces
,
[
True
,
False
],
[
True
,
False
]))
def
test_property
(
self
,
space
,
bare
,
copy
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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