diff --git a/nifty/spaces/lm_space/lm_space.py b/nifty/spaces/lm_space/lm_space.py index f4bab2d7059e47b2aa5241c529356e0959eb344d..2bf02c4dbf2bd223fd13c5e02424b4262052f19f 100644 --- a/nifty/spaces/lm_space/lm_space.py +++ b/nifty/spaces/lm_space/lm_space.py @@ -114,15 +114,13 @@ class LMSpace(Space): def distance_array(self, distribution_strategy): dists = arange( - start=0, stop=self.shape[0], dtype=np.float128, + start=0, stop=self.shape[0], distribution_strategy=distribution_strategy ) - l = hp.Alm.getlm(lmax=self.lmax)[0] dists = dists.apply_scalar_function( - lambda x: _distance_array_helper( - x, self.lmax - ) + lambda x: _distance_array_helper(x, self.lmax), + dtype=np.float ) return dists diff --git a/setup.py b/setup.py index 63a59d6f8a428eac65f0098ec058a870cd42778b..6f458ba2fbf5683b20ff008e230a70bb8870dee0 100644 --- a/setup.py +++ b/setup.py @@ -42,11 +42,11 @@ setup(name="ift_nifty", "lm_transformation_factory.pyx", "nifty/spaces/lm_space/lm_helper.pyx" ]), - include_dirs= [numpy.get_include()], + include_dirs=[numpy.get_include()], dependency_links=[ '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'], - install_requires=['keepers', 'd2o>=1.0.2'], + 'git+https://gitlab.mpcdf.mpg.de/ift/d2o.git#egg=d2o-1.0.4'], + install_requires=['keepers', 'd2o>=1.0.4'], package_data={'nifty.demos': ['demo_faraday_map.npy'], }, license="GPLv3",