Skip to content

Commit edd3225

Browse files
committed
catalog2alm parallel
1 parent 66ed9a5 commit edd3225

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymaster/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,12 @@ def _map2alm_healpy(map, spin, sht_info, alm_info):
849849
'healpy': _alm2map_healpy}
850850

851851

852-
def _alm2catalog_ducc0(alms, positions, spin, lmax):
852+
def _alm2catalog_ducc0(alms, positions, spin, lmax, nthreads=0):
853853
alms = np.atleast_2d(alms)
854854
values = ducc0.sht.synthesis_general(alm=alms, spin=spin,
855855
lmax=lmax, loc=positions.T,
856-
epsilon=1E-5)
856+
epsilon=1E-5,
857+
nthreads=nthreads)
857858
return values
858859

859860

0 commit comments

Comments
 (0)