Skip to content

Instantly share code, notes, and snippets.

@beckermr
Last active March 20, 2019 05:47
Show Gist options
  • Save beckermr/97f1c13cf35476d59ff363e913328c0f to your computer and use it in GitHub Desktop.
Save beckermr/97f1c13cf35476d59ff363e913328c0f to your computer and use it in GitHub Desktop.
simple steps to compile cosmolike in a conda env

cosmolike install

  1. configure conda to use conda-forge

    Add the following to your ${HOME}/.condarc

    channel_priority: strict
    channels:
      - conda-forge
      - defaults
    
  2. make a conda env

    $ conda create -n cosmolike python=2.7 fftw gsl c-compiler binutils make numpy scipy ipython matplotlib

    Once it is done, activate it.

  3. download the repos

    You will need to use my fork of LSSTawakens. It has bug fixes and a correct Makefile for the conda env.

  4. compile the code

    From within the LSSTawakens repo type

    $ make cosmolike
  5. run something

    $ ./like_fourier Y10 shear_shear fid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment