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
212c7dc8
Commit
212c7dc8
authored
Jun 01, 2017
by
Martin Reinecke
Browse files
fix wrong import statement; some consistency improvements
parent
23c5f455
Pipeline
#13208
passed with stage
in 4 minutes and 54 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/common.py
View file @
212c7dc8
...
...
@@ -16,9 +16,9 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik
# and financially supported by the Studienstiftung des deutschen Volkes.
from
nose_
parameterized
import
parameterized
from
parameterized
import
parameterized
from
nifty
import
RGSpace
,
LMSpace
,
HPSpace
,
GLSpace
,
PowerSpace
from
nifty.config
import
dependency_injector
as
di
from
nifty.config
import
dependency_injector
as
g
di
def
custom_name_func
(
testcase_func
,
param_num
,
param
):
...
...
@@ -36,7 +36,7 @@ def expand(*args, **kwargs):
def
generate_spaces
():
spaces
=
[
RGSpace
(
4
),
PowerSpace
(
RGSpace
((
4
,
4
),
harmonic
=
True
)),
LMSpace
(
5
),
HPSpace
(
4
)]
if
'pyHealpix'
in
di
:
if
'pyHealpix'
in
g
di
:
spaces
.
append
(
GLSpace
(
4
))
return
spaces
...
...
test/test_init.py
View file @
212c7dc8
from
nifty
import
*
#This tests if it is possible to import all of nifties methods. Experience shows this is not always possible.
pass
\ No newline at end of file
# This tests if it is possible to import all of Nifty's methods.
# Experience shows this is not always possible.
pass
test/test_spaces/test_gl_space.py
View file @
212c7dc8
...
...
@@ -24,7 +24,7 @@ from numpy.testing import assert_, assert_equal, assert_raises,\
assert_almost_equal
from
nose.plugins.skip
import
SkipTest
from
nifty
import
GLSpace
from
nifty.config
import
dependency_injector
as
di
from
nifty.config
import
dependency_injector
as
g
di
from
test.common
import
expand
# [nlat, nlon, expected]
...
...
@@ -99,7 +99,7 @@ class GLSpaceFunctionalityTests(unittest.TestCase):
except
ImportError
:
raise
SkipTest
if
'pyHealpix'
not
in
di
:
if
'pyHealpix'
not
in
g
di
:
raise
SkipTest
else
:
g
=
GLSpace
(
2
)
...
...
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