Installation#
Stable release#
Use one of the following
pip install cmomy
or
conda install -c conda-forge cmomy
Note on caching#
This code makes extensive use of the numba python package. This uses a jit
compiler to speed up vital code sections. This means that the first time a
function called, it has to compile the underlying code. However, caching has
been implemented. Therefore, the very first time you run a function, it may be
slow. But all subsequent uses (including other sessions) will be already
compiled. You can pre-compile the cmomy
by running
python -m cmomy.compile
If you’ll be using cmomy
in parallel (e.g., using multiprocessing
), make
sure to pre-compile cmomy
, or to turn off caching by setting the environment
variable CMOMY_NUMBA_CACHE=0
.
From sources#
See Contributing for details on installing from source.