-
Notifications
You must be signed in to change notification settings - Fork 354
Home
lesgourg edited this page Feb 17, 2025
·
50 revisions
Welcome to the CLASS public repository wiki!
This is not the same as the CLASS webpage nor the online html documentation.
Please use Anaconda, which is a Python distribution with graphical installer, and a package manager, that will play nicely with Mac OS X, and remove a lot of problems.
Note that you might encounter an error that reads ValueError: unknown locale: UTF-8 when launching ipython. Please paste these two lines:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
at the end of your file ~/.bash_profile.
If you know what you are doing, and/or are on a Linux, you can of course use the Python distribution you want.
- Detailed instructions on how to install the code,
including notes about installing on Mac OS X 10.9+ and the
clangcompiler. - You can find more information on the Python wrapper.
- Problems at compilation, and you don't understand the error message? See the frequently asked questions, and search for the error message.
On this CLASS public repository, you will find only a limited number of branches:
- the
masterbranch contains the latest release (corresponding to a version tag, e.g. v2.7.3) - the
GW_CLASSbranch includes the Cosmological Gravitational Wave Background (CGWB) sector: monopole, Cl auto-correlation spectrum at given frequencies, CMBxCGWB cross-correlation spectrum at given frequencies. The code already includes several CGWB production mechanisms, and more can be added. The new features and input parameters of this branch are described and documented in GW_CLASS: Cosmological Gravitational Wave Background in the Cosmic Linear Anisotropy Solving System, by F. Schulze, L. Valbusa Dall'Armi, J. Lesgourgues, A. Ricciardone, N. Bartolo, D. Bertacca, C. Fidler, S. Matarrese, to appear in JCAP, arXiv:2305.01602. - the
classnetbranch is accelerated by neural networks. Apart from this, it is kept very close to themasterbranch, with just a modified python wrapper and additional files located mainly in thepython/nndirectory.classnetis explained in the CosmicNet II paper by Sven Günther, Julien Lesgourgues, Georgios Samaras, Nils Schöneberg, Florian Stadtmann, Christian Fidler, and Jesus Torrado. It is possible thatclassnetgets merged intomasterat some point. - the
ExoCLASSbranch contains new modules and features for models with exotic energy injection, including theDarkAgesmodule, as described in Exotic energy injection with ExoCLASS: Application to the Higgs portal model and evaporating black holes, by P. Stöcker, M. Krämer, J. Lesgourgues, V. Poulin, JCAP 1803 (2018) 018, arXiv:1801.01871 - the
class_matterbranch contains a parallel version computing large scale structure CL's with the FFTlog method of the paper Beyond the traditional Line-of-Sight approach of cosmological angular statistics, by N. Schöneberg, M. Simonovic, J. Lesgourgues, M. Zaldarriaga, JCAP 1810 (2018) 047, arXiv:1807.09540. It incorporates a module for the pre-computation Bessel integrals, and it is provided with an illustrative input filematter.ini. Most new features are located in the new modulematter.c - until the release of v3.0, we were maintaining separate branches for each major release 2.x. They are still accessible. Note that all the tagged version of the
masterbranch can be accessed anyway from the top menu.
- If you want to contribute to the code, please look at the instructions