Skip to content
elisachisari edited this page Jul 15, 2017 · 18 revisions

Welcome to the CCL wiki!

CCL is the Core Cosmology Library of LSST-DESC. This library provides us with cosmological predictions that we will be using to analyze the data coming from LSST. For example, for a given set of cosmological paramaters and survey properties, CCL can produce angular power spectra for clustering, lensing, etc.

How to get started with CCL

To access the git repository for CCL, please link your github account to your confluence account. Go to the DESC confluence page http://confluence.slac.stanford.edu/display/LSSTDESC/home. Click on DESC People Database. Find your name, click on it and edit the information to add your github user.

Ask the CCL admins (Joe Zuntz, David Alonso, Elisabeth Krause, Elisa Chisari) to be added to the github repo for CCL.

Clone the repository into your computer. Do

cd path/to/CCL/dir
git clone git@github.com:DarkEnergyScienceCollaboration/CCL.git

In order to compile CCL you need GSL version 2-1. You can get GSL here: https://www.gnu.org/software/gsl/. To install it you need to be the admin of your computer. Also in the future, you will also need FFTW3, which you can get here: http://www.fftw.org.

To compile CCL, go to the directory where you installed it and follow the instructions on the README.

cd path/to/CCL/dir
./configure
make
make install

See also Known installation issues

How to contribute to CCL

We ask you that when you work on a modification on CCL, you do so by creating a git "branch". You can do this by going to the CCL directory in your computer and typing

git checkout -b nameofyourbranch

This command will at the same time create the branch and switch to it.

Now you can start your modifications. Once you are done and want to show us what you have done, you should do a commit

git commit -m "some message about what you have done"

and then push into the repository

git push -u origin nameofyourbranch

Continue working on your branch and push your changes into the upstream branch. To only push changes from your current branch, you need to configure git as follows

git config --global push.default current

When you are done with your work, open a pull request.

If you find something we have missed, please contribute by opening a github issue on this.

Relation to CosmoLike/Cosmosis

CosmoSIS: sampler, pipeline code, and collection of cosmology modules for inference with focus on flexibility

CosmoLike: optimized pipeline for fast, high-precision multiprobe predictions with focus on internal consistency

CCL is external to both these frameworks

  • Learn from strengths and weaknesses of both
  • Not replacing either of them, but can become part of each
  • Lives in its own repository
  • Designed to be independently useful however your WG decides to work
Clone this wiki locally