sp_validation.dashboard.cosebis_grid

COSEBIs B-mode PTEs over every reporting-bin scale cut (Paper II Fig. 8).

For each contiguous range of reporting bins [i, j] on the 20-bin 1′–250′ grid, the COSEBIs are recomputed on the integration-grid ξ± between those reporting edges, and the B-mode χ² against zero is taken over the first 6 and over all 20 modes with the analytic covariance carried through the same kernel. Where the 20-mode filters fail to converge (narrow cuts), the n ≤ 6 PTE comes from a 6-mode computation and the n ≤ 20 PTE is NaN.

The product is a cache read by sp_validation.dashboard.scale_cuts.config_space(); computing it needs only the run’s integration-grid ξ± part and its OneCovariance covariance, never the catalogue. Usage:

python -m sp_validation.dashboard.cosebis_grid --run-dir RUN --version V \
    --out cosebis_grid_V.npz [--nproc N]
_paths(run_dir, version)[source]
_grid(run_dir)[source]

Reporting edges and integration binning from the run’s configuration.

_init(xi_path, cov_path, blind, integ, nmodes)[source]
_modes(cut, nmodes)[source]

B-mode COSEBIs and their covariance for one cut, or None if the filter roots fail to converge.

_pair(cut)[source]

B PTEs over the first k modes for each k in SUBSETS.

The log-COSEBIs filter of mode n does not depend on how many modes are requested, so a cut whose full mode set fails to converge is retried with only the modes a smaller subset needs.

compute(run_dir, version, cat_config, nproc=1)[source]
main(argv=None)[source]