Skip to main content

Likelihood for LiteBIRD

Project description

LiLit: Likelihood for LiteBIRD

Build Status Documentation Status PyPI version

Author: Giacomo Galloni

LiLit (Likelihood for LiteBIRD) is a framework for forecasting likelihoods for the LiteBIRD CMB polarization satellite. It provides a common framework for LiteBIRD researchers working within the Cobaya cosmological analysis ecosystem.

Quick Start

Install LiLit from PyPI:

pip install lilit

Basic usage:

from lilit import LiLit

# Create a likelihood for temperature and polarization
fields = ["t", "e", "b"]
likelihood = LiLit(
    fields=fields,
    lmax=[1500, 1200, 900],
    lmin=[20, 2, 2], 
    fsky=[1.0, 0.8, 0.6]
)

Key Features

  • Multiple field support: Temperature, E-mode, B-mode polarization, and lensing
  • Flexible configuration: Field-specific multipole ranges and sky fractions
  • Multiple likelihood approximations: Exact, Gaussian, and correlated Gaussian
  • Seamless Cobaya integration: Drop-in replacement for existing likelihood codes
  • Extensible design: Easy integration of custom noise models and fiducial spectra

Documentation

📖 Complete documentation is available at https://lilit.readthedocs.io/

The documentation includes:

  • Installation guide and quick start tutorial
  • Detailed examples for common LiteBIRD use cases
  • Theoretical background on likelihood approximations
  • API reference with full class and function documentation
  • Cobaya integration guide for parameter estimation and model comparison

Examples

See the examples directory and the online documentation for working examples including:

  • Basic temperature and polarization analysis
  • Multi-field likelihood configurations
  • Integration with Cobaya sampling chains
  • Custom noise model implementations

Contributing

Contributions are welcome! Please see our documentation for development guidelines, or open an issue to discuss major changes.

Citation

If you use LiLit in your research, please cite this repository and the relevant cosmological codes. Use Cobaya's cobaya-bib script to generate appropriate citations for your specific analysis.

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lilit-1.4.1.tar.gz (8.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lilit-1.4.1-py3-none-any.whl (85.4 kB view details)

Uploaded Python 3

File details

Details for the file lilit-1.4.1.tar.gz.

File metadata

  • Download URL: lilit-1.4.1.tar.gz
  • Upload date:
  • Size: 8.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lilit-1.4.1.tar.gz
Algorithm Hash digest
SHA256 d3b9de6a6a7f0fc044d5cb0787a4edee8f166b500ec4bbd10c86ad36cf0600de
MD5 e287a91296e0b692fe3c198d158cab29
BLAKE2b-256 5e6f3ff0beb17bed84f6c0926f62d1c1289713e9ee6f3e2ae20597ff6bdaeae6

See more details on using hashes here.

File details

Details for the file lilit-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: lilit-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 85.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lilit-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9c60936ba0a6a9f293f7b5a567aefa64fff312d47e12a00a95e4b6457ec1a10
MD5 a6f0cd66ede673dc19f8c10db3f4cc68
BLAKE2b-256 1cd77315950f1199eea223478fee58db2295dfdf7a841de0099babf69230793b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page