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
3cb05a15
Commit
3cb05a15
authored
Feb 06, 2015
by
Marco Selig
Browse files
version update prepared.
parent
469400d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
lm/nifty_lm.py
View file @
3cb05a15
...
...
@@ -457,10 +457,10 @@ class lm_space(space):
if
(
_gl_available
):
## default
x
=
gl
.
synalm_f
(
arg
[
1
],
lmax
=
lmax
,
mmax
=
lmax
)
else
:
x
=
hp
.
synalm
(
arg
[
1
].
astype
(
np
.
complex128
),
lmax
=
lmax
,
mmax
=
lmax
).
astype
(
np
.
complex64
)
x
=
hp
.
synalm
(
arg
[
1
].
astype
(
np
.
complex128
),
lmax
=
lmax
,
mmax
=
lmax
).
astype
(
np
.
complex64
)
## FIXME: `verbose` kwarg
else
:
if
(
_hp_available
):
## default
x
=
hp
.
synalm
(
arg
[
1
],
lmax
=
lmax
,
mmax
=
lmax
)
x
=
hp
.
synalm
(
arg
[
1
],
lmax
=
lmax
,
mmax
=
lmax
)
## FIXME: `verbose` kwarg
else
:
x
=
gl
.
synalm
(
arg
[
1
],
lmax
=
lmax
,
mmax
=
lmax
)
...
...
@@ -680,7 +680,7 @@ class lm_space(space):
elif
(
isinstance
(
codomain
,
hp_space
)):
## 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
)
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
## weight if discrete
if
(
codomain
.
discrete
):
Tx
=
codomain
.
calc_weight
(
Tx
,
power
=
0.5
)
...
...
@@ -1866,7 +1866,7 @@ class hp_space(space):
elif
(
arg
[
0
]
==
"syn"
):
lmax
=
3
*
self
.
para
[
0
]
-
1
## 3*nside-1
x
=
hp
.
synfast
(
arg
[
1
],
self
.
para
[
0
],
lmax
=
lmax
,
mmax
=
lmax
,
alm
=
False
,
pol
=
True
,
pixwin
=
False
,
fwhm
=
0.0
,
sigma
=
None
)
x
=
hp
.
synfast
(
arg
[
1
],
self
.
para
[
0
],
lmax
=
lmax
,
mmax
=
lmax
,
alm
=
False
,
pol
=
True
,
pixwin
=
False
,
fwhm
=
0.0
,
sigma
=
None
)
## FIXME: `verbose` kwarg
## weight if discrete
if
(
self
.
discrete
):
x
=
self
.
calc_weight
(
x
,
power
=
0.5
)
...
...
nifty_core.py
View file @
3cb05a15
...
...
@@ -150,7 +150,7 @@ from multiprocessing import Value as mv
from
multiprocessing
import
Array
as
ma
__version__
=
"1.0.
5
"
__version__
=
"1.0.
6
"
pi
=
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
...
...
setup.py
View file @
3cb05a15
...
...
@@ -23,7 +23,7 @@ from distutils.core import setup
import
os
setup
(
name
=
"nifty"
,
version
=
"
0.9.0
"
,
version
=
"
1.0.6
"
,
description
=
"Numerical Information Field Theory"
,
author
=
"Marco Selig"
,
author_email
=
"mselig@mpa-garching.mpg.de"
,
...
...
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