Examples¶
The examples take BayesEoR through its full workflow, from noiseless simulated visibilities to a recovered 21-cm power spectrum. Both use the same HERA-like observation, a reduced version of the one analysed in Tutt et al. (2026), and each runs on a laptop CPU in a few minutes.
Overview¶
- 21-cm only: infer the power spectrum of a cosmological signal on its own.
- 21-cm and foregrounds: add bright foregrounds, compress them into a KL reduced basis and infer the power spectrum jointly.
Each example has its own data, configuration and entry point in the repository's
examples/ folder, and runs from the repository root after
installation:
python -m examples.eor.run --sample
python -m examples.eor_fgs.run --sample
Without --sample, each stops after setup, having loaded the data, added noise and
built the operators.