LFKit is a modular Python toolkit for luminosity function modeling, photometric corrections, and related utilities for cosmological analyses.
It is designed to provide reusable building blocks for working with luminosity functions, magnitude conversions, k-corrections, e-corrections, and photometric response handling in a clear and extensible way.
LFKit currently includes tools for:
- luminosity function modeling
- Schechter and evolving luminosity function utilities
- magnitude and luminosity conversions
- k-corrections and e-corrections
- photometric response and filter-related helpers
- interpolation, validation, and general utility functions
The package is intended to stay modular, so components can be used independently or combined into larger analysis pipelines.
Install LFKit from PyPI:
python -m pip install py-lfkitClone the repository and install it locally:
git clone https://github.com/cosmology-kit/lfkit.git
cd lfkit
python -m pip install -e .If you use LFKit in your research, please cite it.
@software{sarcevic2026lfkit,
title = {LFKit: Luminosity functions and photometric corrections toolkit},
author = {Šarčević, Nikolina},
year = {2026},
version = {0.1.4},
url = {https://github.com/cosmology-kit/lfkit}
}MIT License © 2025 Niko Šarčević, Matthijs van der Wild, and contributors.