Code supporting arxiv:2512.16869. sbi_bmode is a python library that combines Needlet-ILC with simulation-based inference to estimate the tensor-to-scalar ratio from CMB B-mode polarization data in the presence of complicated Galactic foregrounds.
pip install .
Consider adding the -e flag (pip install -e .) to enable automatic
updating of code changes when developing.
The main script is run_sbi_basic.py. See runs/README for examples of slurm scripts used to run the scripts. The scripts/paper directory contains scripts to produce the plots in the paper.