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
d36b7ae7
Commit
d36b7ae7
authored
Mar 23, 2015
by
ultimanet
Browse files
Merge pull request
#19
from ultimanet/master
fixed the healpix import test
parents
4eede1bc
ffa859b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm/__init__.py
View file @
d36b7ae7
...
...
@@ -30,7 +30,7 @@ try:
except
(
ImportError
):
try
:
import
healpy
as
hp
if
lv
(
hp
.
__version__
)
<
=
lv
(
'1.8.1'
):
if
lv
(
hp
.
__version__
)
<
lv
(
'1.8.1'
):
raise
ImportError
(
about
.
_errors
.
cprint
(
"ERROR: installed healpy version is older than 1.8.1!"
))
except
(
ImportError
):
about
.
infos
.
cprint
(
"INFO: neither libsharp_wrapper_gl nor healpy available."
)
...
...
@@ -41,7 +41,7 @@ except(ImportError):
else
:
try
:
import
healpy
as
hp
if
lv
(
hp
.
__version__
)
<
=
lv
(
'1.8.1'
):
if
lv
(
hp
.
__version__
)
<
lv
(
'1.8.1'
):
raise
ImportError
(
about
.
_errors
.
cprint
(
"ERROR: installed healpy version is older than 1.8.1!"
))
except
(
ImportError
):
from
nifty_lm
import
lm_space
,
gl_space
## import lm & gl
...
...
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