Commit 9a2e67f9 authored by theos's avatar theos

Fixed LMSpace.distance_array

parent d328c4e3
...@@ -114,15 +114,13 @@ class LMSpace(Space): ...@@ -114,15 +114,13 @@ class LMSpace(Space):
def distance_array(self, distribution_strategy): def distance_array(self, distribution_strategy):
dists = arange( dists = arange(
start=0, stop=self.shape[0], dtype=np.float128, start=0, stop=self.shape[0],
distribution_strategy=distribution_strategy distribution_strategy=distribution_strategy
) )
l = hp.Alm.getlm(lmax=self.lmax)[0]
dists = dists.apply_scalar_function( dists = dists.apply_scalar_function(
lambda x: _distance_array_helper( lambda x: _distance_array_helper(x, self.lmax),
x, self.lmax dtype=np.float
)
) )
return dists return dists
......
...@@ -42,11 +42,11 @@ setup(name="ift_nifty", ...@@ -42,11 +42,11 @@ setup(name="ift_nifty",
"lm_transformation_factory.pyx", "lm_transformation_factory.pyx",
"nifty/spaces/lm_space/lm_helper.pyx" "nifty/spaces/lm_space/lm_helper.pyx"
]), ]),
include_dirs= [numpy.get_include()], include_dirs=[numpy.get_include()],
dependency_links=[ dependency_links=[
'git+https://gitlab.mpcdf.mpg.de/ift/keepers.git#egg=keepers', 'git+https://gitlab.mpcdf.mpg.de/ift/keepers.git#egg=keepers',
'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.0.2'], 'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.0.4'],
install_requires=['keepers', 'd2o>=1.0.2'], install_requires=['keepers', 'd2o>=1.0.4'],
package_data={'nifty.demos': ['demo_faraday_map.npy'], package_data={'nifty.demos': ['demo_faraday_map.npy'],
}, },
license="GPLv3", license="GPLv3",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment