hi_class: Horndeski in the Cosmic Linear Anisotropy Solving System
hi_class extends the CLASS Boltzmann code to cover Horndeski and related scalar-tensor models of dark energy and modified gravity. It is based on CLASS by Julien Lesgourgues, with major inputs from Thomas Tram and others.
- Website: http://hiclass-code.net
- CLASS website: http://class-code.net
Authors
- Emilio Bellini
- Ignacy Sawicki
- Miguel Zumalacarregui
Installation
From PyPI/TestPyPI
pip install hiclassy
This installs the Python wrapper and builds the C core. You need a working C compiler (e.g. gcc) and, optionally, OpenMP support for parallel execution.
From source
make clean
make class
To build the Python wrapper, run:
make
If compilation fails, check the Makefile for compiler, optimization flags, and OpenMP settings.
Quick start
Use the Python interface:
from hiclassy import HiClass
The HiClass object is the equivalent of the Class object for standard Class. All methods and attributes, plus additional HiClass specific, are shared between the two. Then, the usage of the two should be equivalent.
If you want to use the C executable instead, you can run:
./class explanatory.ini
Parameter documentation and examples are available in hi_class.ini and explanatory.ini, plus the example files in gravity_models/.
Citing hi_class
If you use hi_class, please cite:
- M. Zumalacarregui, E. Bellini, I. Sawicki, J. Lesgourgues, P. Ferreira, "hi_class: Horndeski in the Cosmic Linear Anisotropy Solving System", JCAP 1708 (2017) no.08, 019, http://arxiv.org/abs/arXiv:1605.06102
- E. Bellini, I. Sawicki, M. Zumalacarregui, "hi_class: Background Evolution, Initial Conditions and Approximation Schemes", http://arxiv.org/abs/arXiv:1909.01828
Please also cite the relevant CLASS papers, including:
- CLASS I: Overview, http://arxiv.org/abs/1104.2932
- CLASS II: Approximation schemes, http://arxiv.org/abs/1104.2933
Plotting utilities
The package includes the Class Plotting Utility CPU.py for plotting Cl's, P(k), and related outputs, including model comparisons. Run:
python CPU.py --help
A MATLAB helper is available in plot_CLASS_output.m.
Development
We recommend developing from the GitHub repository:
https://github.com/emiliobellini/hi_class_public
For hi_class-specific updates, see this repository and the gravity_models/ examples.
Support
For support, please open an issue in the repository or refer to the documentation at http://hiclass-code.net.
Metadata
Release files for hiclassy 3.3.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hiclassy-3.3.4.4.tar.gz | 6.6 MB | Without provenance | Details for hiclassy-3.3.4.4.tar.gz |
Release files / hiclassy-3.3.4.4.tar.gz
| Download URL | hiclassy-3.3.4.4.tar.gz |
|---|---|
| Size | 6.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46229c2e5a6fb8d32ab915906001f2928abb9a8e9cf5f3dc981cd51ff0eea338
|
|
BLAKE2b-256 checksum How to use checksums |
1a436f2dfbd4569da2a7373e0f7799c899b4039528989a3f7916f51289f4f89b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for hiclassy 3.3.4.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.