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
Neel Shah
NIFTy
Commits
c13577e3
Commit
c13577e3
authored
Mar 14, 2016
by
theos
Browse files
Removed the invert keyword argument from healpy calls.
They were removed after healpy 1.8.1.
parent
e6697adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm/nifty_lm.py
View file @
c13577e3
...
@@ -680,7 +680,7 @@ class lm_space(space):
...
@@ -680,7 +680,7 @@ class lm_space(space):
elif
(
isinstance
(
codomain
,
hp_space
)):
elif
(
isinstance
(
codomain
,
hp_space
)):
## transform
## transform
Tx
=
hp
.
alm2map
(
x
.
astype
(
np
.
complex128
),
codomain
.
para
[
0
],
lmax
=
self
.
para
[
0
],
mmax
=
self
.
para
[
1
],
pixwin
=
False
,
fwhm
=
0.0
,
sigma
=
None
,
invert
=
False
,
pol
=
True
,
inplace
=
False
)
## FIXME: `verbose` kwarg
Tx
=
hp
.
alm2map
(
x
.
astype
(
np
.
complex128
),
codomain
.
para
[
0
],
lmax
=
self
.
para
[
0
],
mmax
=
self
.
para
[
1
],
pixwin
=
False
,
fwhm
=
0.0
,
sigma
=
None
,
pol
=
True
,
inplace
=
False
)
## FIXME: `verbose` kwarg
## weight if discrete
## weight if discrete
if
(
codomain
.
discrete
):
if
(
codomain
.
discrete
):
Tx
=
codomain
.
calc_weight
(
Tx
,
power
=
0.5
)
Tx
=
codomain
.
calc_weight
(
Tx
,
power
=
0.5
)
...
@@ -722,7 +722,7 @@ class lm_space(space):
...
@@ -722,7 +722,7 @@ class lm_space(space):
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid sigma."
))
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid sigma."
))
## smooth
## smooth
if
(
_hp_available
):
## default
if
(
_hp_available
):
## default
return
hp
.
smoothalm
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
invert
=
False
,
pol
=
True
,
mmax
=
self
.
para
[
1
],
verbose
=
False
,
inplace
=
False
)
## no overwrite
return
hp
.
smoothalm
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
pol
=
True
,
mmax
=
self
.
para
[
1
],
verbose
=
False
,
inplace
=
False
)
## no overwrite
else
:
else
:
return
gl
.
smoothalm
(
x
,
lmax
=
self
.
para
[
0
],
mmax
=
self
.
para
[
1
],
fwhm
=
0.0
,
sigma
=
sigma
,
overwrite
=
False
)
## no overwrite
return
gl
.
smoothalm
(
x
,
lmax
=
self
.
para
[
0
],
mmax
=
self
.
para
[
1
],
fwhm
=
0.0
,
sigma
=
sigma
,
overwrite
=
False
)
## no overwrite
...
@@ -2051,7 +2051,7 @@ class hp_space(space):
...
@@ -2051,7 +2051,7 @@ class hp_space(space):
elif
(
sigma
<
0
):
elif
(
sigma
<
0
):
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid sigma."
))
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid sigma."
))
## smooth
## smooth
return
hp
.
smoothing
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
invert
=
False
,
pol
=
True
,
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
lmax
=
3
*
self
.
para
[
0
]
-
1
,
mmax
=
3
*
self
.
para
[
0
]
-
1
,
use_weights
=
False
,
datapath
=
None
)
return
hp
.
smoothing
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
pol
=
True
,
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
lmax
=
3
*
self
.
para
[
0
]
-
1
,
mmax
=
3
*
self
.
para
[
0
]
-
1
,
use_weights
=
False
,
datapath
=
None
)
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...
...
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