Installation¶
Stable release¶
To install lightcone, run this command in your terminal:
$ pip install lightcone
This is the preferred method to install lightcone, as it will always install the most recent stable release.
If you don’t have pip installed, this Python installation guide can guide you through the process.
From sources¶
The sources for lightcone can be downloaded from the Github repo.
You can either clone the public repository:
$ git clone git://github.com/sibirrer/lightcone
Or download the tarball:
$ curl -OJL https://github.com/sibirrer/lightcone/tarball/master
Once you have a copy of the source, you can install it with:
$ python setup.py install
FFMPEG¶
FFMPEG installation is required to create MP4 files of the animated lightcurves.
Free download: https://ffmpeg.org/download.html.
After downloading, make sure you include the FFMPEG binary directory (e.g. C:\users\user\ffmpeg\bin) to your PATH.
On Windows you can edit your environment variables and edit your Path to add to it. You may want to restart your PC after doing so too.
Paltas¶
To install Paltas, run this command in your terminal:
$ pip install paltas
Lightcone currently uses Paltas version 0.1.1.
If using Paltas with Lightcone, the following catalog should be downloaded:
COSMOS 23.5 Magnitude Catalog: https://github.com/GalSim-developers/GalSim/wiki/RealGalaxy%20Data
After downloading and unzipping the catalog, make sure you go into the config file (e.g. test_config.py) and assign the cosmos_folder variable to the path name of where you unzipped the catalog.