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
8f0c4f6c
Commit
8f0c4f6c
authored
Feb 09, 2015
by
Marco Selig
Browse files
regression fix.
parent
3cb05a15
Changes
1
Show whitespace changes
Inline
Side-by-side
lm/nifty_lm.py
View file @
8f0c4f6c
...
...
@@ -2007,7 +2007,7 @@ class hp_space(space):
if
(
self
.
discrete
):
x
=
self
.
calc_weight
(
x
,
power
=-
0.5
)
## transform
Tx
=
hp
.
map2alm
(
x
.
astype
(
np
.
float64
),
lmax
=
codomain
.
para
[
0
],
mmax
=
codomain
.
para
[
1
],
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
pol
=
True
,
use_weights
=
False
,
datapath
=
None
)
Tx
=
hp
.
map2alm
(
x
.
astype
(
np
.
float64
),
lmax
=
codomain
.
para
[
0
],
mmax
=
codomain
.
para
[
1
],
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
pol
=
True
,
use_weights
=
False
,
regression
=
False
,
datapath
=
None
)
else
:
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: unsupported transformation."
))
...
...
@@ -2081,7 +2081,7 @@ class hp_space(space):
if
(
self
.
discrete
):
x
=
self
.
calc_weight
(
x
,
power
=-
0.5
)
## power spectrum
return
hp
.
anafast
(
x
,
map2
=
None
,
nspec
=
None
,
lmax
=
3
*
self
.
para
[
0
]
-
1
,
mmax
=
3
*
self
.
para
[
0
]
-
1
,
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
alm
=
False
,
pol
=
True
,
use_weights
=
False
,
datapath
=
None
)
return
hp
.
anafast
(
x
,
map2
=
None
,
nspec
=
None
,
lmax
=
3
*
self
.
para
[
0
]
-
1
,
mmax
=
3
*
self
.
para
[
0
]
-
1
,
iter
=
kwargs
.
get
(
"iter"
,
self
.
niter
),
alm
=
False
,
pol
=
True
,
use_weights
=
False
,
regression
=
False
,
datapath
=
None
)
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...
...
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