Requirements¶
Prospector works with Python3
You will also need:
- numpy and SciPy
- emcee and/or dynesty for inference (Please cite these packages in any publications)
- sedpy (for filter projections)
- HDF5 and h5py (If you have Enthought or Anaconda one or both of these may already be installed, or you can get HDF5 from homebrew or macports)
For modeling galaxies you will need:
- FSPS and python-FSPS (Please cite these packages in any publications)
You probably also need to have AstroPy for FITS file processing and cosmological calculations, please cite this package in any publications.
For parallel processing with emcee you will need:
- MPI (e.g. openMPI or mvapich2, available from homebrew, macports, or Anaconda) and mpi4py
Installation¶
Prospector itself is is pure python. However, several other packages are required (see above.) To install Prospector and its dependencies to a conda environment, use the following procedure:
# change this if you want to install elsewhere;
# or, copy and run this script in the desired location
CODEDIR=$PWD
# Create and activate environment (named 'prospector')
cd $CODEDIR
git clone git@github.com:bd-j/prospector.git
cd prospector
conda env create -f environment.yml
conda activate prospector
cd ..
# Install FSPS from source
git clone git@github.com:cconroy20/fsps
export SPS_HOME="$PWD/fsps"
cd $SPS_HOME/src
make clean; make all
# Install other repos from source
repos=( dfm/python-fsps bd-j/sedpy )
for r in "${repos[@]}"; do
git clone git@github.com:$r
cd ${r##*/}
python setup.py install
cd ..
done
cd prospector
python setup.py install
echo "Add 'export SPS_HOME=$SPS_HOME' to your .bashrc"
To install just Prospector
cd <install_dir>
git clone https://github.com/bd-j/prospector
cd prospector
python setup.py install
Then in Python
import prospect