Transits package - Credits: Nikole Lewis, Mike Line, Jason Rowe, Jeff Valenti, Laura Kreidberg, Dan Foreman-Mackey **** Warning: we advise not to use this package for publication. The software has pedagogical applications only. **** NOTE: The following instructions have been tested on a Linux Centos 6.8 machine. Before starting to install the package, make sure that: 1) you have installed Anaconda (https://docs.continuum.io/anaconda/install) 2) you have installed Astroconda (http://astroconda.readthedocs.io/en/latest/installation.html) 3) you are in the Astroconda environment. If you are not sure, type: conda list env If astroconda is not selected, do: source activate astroconda 4) make sure you can open Python notebooks. To this end, install jupyter, i.e.,: conda install jupyter At this stage, you can continue with the installation of the "Transits" package: 5) install batman package (http://astro.uchicago.edu/~kreidberg/batman/) -> pip install batman-package 6) install pymultinest package (https://johannesbuchner.github.io/PyMultiNest/) NOTE: to install, follow instructions at: http://johannesbuchner.github.io/pymultinest-tutorial/install.html#on-your-own-computer 7) install corner package, i.e. type: pip install corner 8) install 'mpirun'. In order to do this, type: yum install openmpi-1.8.x86_64 module add openmpi-x86_64 NOTE: before the "module" command, you may have to install "module": yum install environment-module Once you have executed all these steps, you will have to add some lines into your .bashrc (or .tcsh or .cshrc, depending on your shell environment). For instance. your .bashrc will look something like: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functions # # SSW 2016 settings # export PATH=/ssw/apps/anaconda2/bin:$PATH export PATH=/ssw/apps/PyMultiNest/:$PATH export LD_LIBRARY_PATH=/ssw/apps/MultiNest/lib/:$LD_LIBRARY_PATH export MPI_SUFFIX=_openmpi export MPI_MAN=/usr/share/man/openmpi-x86_64 export MPI_HOME=/usr/lib64/openmpi export MPI_FORTRAN_MOD_DIR=/usr/lib64/gfortran/modules/openmpi-x86_64 export MPI_SYSCONFIG=/etc/openmpi-x86_64 export _LMFILES_=/etc/modulefiles/openmpi-x86_64 # to enter Astroconda environment source activate astroconda # to load mpirun module module add openmpi-x86_64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% In the example above, '/ssw/apps/' will have to be replaced with the installation path of the various packages on your local machine. Remember to source the .bashrc file before trying to run the Transits code.