Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
ffa859b0
Commit
ffa859b0
authored
Mar 23, 2015
by
ultimanet
Browse files
fixed the healpix import test
parent
7fc97c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm/__init__.py
View file @
ffa859b0
...
...
@@ -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
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