From 9a2e67f977e534a53f12e1eda77d5224e45455d7 Mon Sep 17 00:00:00 2001 From: theos Date: Wed, 21 Sep 2016 22:19:50 +0200 Subject: [PATCH] Fixed LMSpace.distance_array --- nifty/spaces/lm_space/lm_space.py | 8 +++----- setup.py | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/nifty/spaces/lm_space/lm_space.py b/nifty/spaces/lm_space/lm_space.py index f4bab2d7..2bf02c4d 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 63a59d6f..6f458ba2 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", -- GitLab