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
06b71ad2
Commit
06b71ad2
authored
Mar 14, 2016
by
csongor
Browse files
Remove invert parameter from healpy call.
This fix is needed for healpy 1.9.1.
parent
650d56c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm/nifty_lm.py
View file @
06b71ad2
...
...
@@ -583,7 +583,7 @@ class lm_space(point_space):
# transform
Tx
=
hp
.
alm2map
(
x
.
astype
(
np
.
complex128
),
nside
,
lmax
=
lmax
,
mmax
=
mmax
,
pixwin
=
False
,
fwhm
=
0.0
,
sigma
=
None
,
invert
=
False
,
pol
=
True
,
inplace
=
False
)
pol
=
True
,
inplace
=
False
)
# re-weight if discrete
if
(
codomain
.
discrete
):
Tx
=
codomain
.
calc_weight
(
Tx
,
power
=
0.5
)
...
...
@@ -623,7 +623,7 @@ class lm_space(point_space):
elif
sigma
<
0
:
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid sigma."
))
if
gc
[
'use_healpy'
]:
return
hp
.
smoothalm
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
invert
=
False
,
return
hp
.
smoothalm
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
pol
=
True
,
mmax
=
self
.
paradict
[
'mmax'
],
verbose
=
False
,
inplace
=
False
)
else
:
...
...
@@ -1896,7 +1896,7 @@ class hp_space(point_space):
# smooth
lmax
=
3
*
nside
-
1
mmax
=
lmax
return
hp
.
smoothing
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
invert
=
False
,
pol
=
True
,
return
hp
.
smoothing
(
x
,
fwhm
=
0.0
,
sigma
=
sigma
,
pol
=
True
,
iter
=
niter
,
lmax
=
lmax
,
mmax
=
mmax
,
use_weights
=
False
,
datapath
=
None
)
...
...
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