Commit 9a2e67f9 authored by theos's avatar theos

Fixed LMSpace.distance_array

parent d328c4e3
......@@ -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
......
......@@ -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",
......
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