Since celerite is actively under development right now, the best way to install it is following From Source below.
This method doesn’t work yet but when it does, it’ll be the best!
The recommended method of installing celerite is using conda with the following command:
conda install -c conda-forge celerite
pip install celerite
If the Eigen headers can’t be found, you can hint the include directory as follows:
pip install celerite \ --global-option=build_ext \ --global-option=-I/path/to/eigen3
The source code for celerite can be downloaded from GitHub by running
git clone https://github.com/dfm/celerite.git
For the Python interface, you’ll (obviously) need a Python installation and I recommend conda if you don’t already have your own opinions.
After installing Python, the following dependencies are required to build celerite:
- Eigen is required for matrix computations,
- NumPy for math and linear algebra in Python, and
- pybind11 for the Python–C++ interface.
If you’re using conda, you can install all of the dependencies with the following command:
conda install -c conda-forge eigen numpy pybind11
After installing the dependencies, you can build the celerite module by running:
python setup.py install
in the root directory of the source tree. If the Eigen headers can’t be found, you can hint the include directory as follows:
python setup.py build_ext -I/path/to/eigen3 install