Metadata-Version: 2.4
Name: cosmoblender
Version: 1.0.0
Summary: CosmoBLENDER: Cosmological Biases to LENsing and Delensing due to Extragalactic Radiation
Author-email: Anton Baleato Lizancos <a.baleatolizancos@berkeley.edu>
License-Expression: CC-BY-NC-SA-3.0
Project-URL: Homepage, https://github.com/abaleato/CosmoBLENDER
Project-URL: Repository, https://github.com/abaleato/CosmoBLENDER
Project-URL: Issues, https://github.com/abaleato/CosmoBLENDER/issues
Keywords: cmb,lensing,delensing,cosmology,halo-model
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Astronomy
Classifier: Intended Audience :: Science/Research
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: matplotlib
Requires-Dist: astropy
Requires-Dist: healpy
Requires-Dist: hmvec
Requires-Dist: quicklens
Provides-Extra: fftlog
Requires-Dist: pyccl; extra == "fftlog"
Dynamic: license-file

# CosmoBLENDER

**C**osmological **B**iases to **LEN**sing and **D**elensing **D**ue to **E**xtragalactic **R**adiation

CosmoBLENDER computes foreground-induced biases to temperature-based CMB lensing reconstructions, including:
- CMB lensing auto-correlations,
- CMB lensing cross-correlations with galaxies,
- internal B-mode delensing.

The implementation follows [Baleato Lizancos et al. 2025](https://arxiv.org/abs/2507.03859).


## Installation
Install from PyPI with:

     python -m pip install cosmoblender

Optional FFTlog functionality requires `pyccl`:

     python -m pip install "cosmoblender[fftlog]"

### Core dependencies
- `NumPy`, `SciPy`, `Matplotlib`
- `BasicILC` from [this fork](https://github.com/abaleato/BasicILC/tree/cosmoblender)
- `Hmvec` from its [galaxy branch](https://github.com/simonsobs/hmvec) for CIB calculations
- `Quicklens` ([Python 3 version](https://github.com/abaleato/Quicklens-with-fixes/tree/Python3))
- `astropy`

## Usage
Tutorial notebooks live in `notebooks/` in the GitHub repository.

Start with `notebooks/example_pipeline.ipynb`, then see:
- `notebooks/auto_correlations.ipynb`
- `notebooks/cross_correlations.ipynb`
- `notebooks/delensing.ipynb`

## Attribution
If you use the code, please cite [Baleato Lizancos et al. 2025](https://arxiv.org/abs/2507.03859).
