Skip to content

Commit eec4980

Browse files
authored
gh-391: _naturalspice expects and returns correlation functions (#390)
1 parent 52f85d2 commit eec4980

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

heracles/dices/jackknife.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ..mapping import transform
2727
from ..twopoint import angular_power_spectra
2828
from ..unmixing import _naturalspice, logistic
29-
from ..transforms import _cl2corr
29+
from ..transforms import _cl2corr, cl2corr, corr2cl
3030

3131
try:
3232
from copy import replace
@@ -77,7 +77,9 @@ def jackknife_cls(
7777
vis_alms_jk = _sum_alms_except(vis_alms_regions, regions)
7878
_cls_mm = angular_power_spectra(vis_alms_jk)
7979
alphas = get_mask_correlation_ratio(_cls_mm, mls0, unmixed=unmixed)
80-
_cls = _naturalspice(_cls, alphas, fields)
80+
_wcls = cl2corr(_cls)
81+
_wcls = _naturalspice(_wcls, alphas, fields)
82+
_cls = corr2cl(_wcls)
8183
elif mask_correction == "Fast":
8284
_cls = correct_footprint_reduction(
8385
_cls, jk_maps, fields, *regions, unmixed=unmixed

0 commit comments

Comments
 (0)