Configuration

Software installations

Required Installations:

1. Set up a new conda environment

conda create -n yupra python==3.9
conda activate yupra

2. Installing packages with conda or pip

conda install numpy pandas astropy scipy

3. Install some custom packages for this project

Create a new file directory to install pakages from github. As an example, my file structure looks like this:

/research
	/alabi
	/vplanet
	/vplanet_inference
	...

To create these directories, navigate to your home directory (or somewhere where you have enough disk space):

cd ~/

Next, create a directory to store all research related stuff, and enter that directory:

mkdir research
cd research

Install vplanet: this is the main package for running stellar/exoplanet models in C:

git clone https://github.com/VirtualPlanetaryLaboratory/vplanet
cd vplanet
python setup.py develop
cd ..

Install vplanet_inference: this is the code we’ll be using to run vplanet models using Python.

git clone https://github.com/jbirky/vplanet_inference
cd vplanet_inference
python setup.py install
cd ..

Install alabi: this is the code we’ll be using for running statistics with our models.

git clone https://github.com/jbirky/alabi  
cd alabi  
python setup.py install
cd ..

4. Add repository paths to your bash profile

Next create an environmental variable for each of these packages. In terminal, copy these lines, replacing path_to with the base directory of your research folder:

echo "export PYTHONPATH=$PYTHONPATH:/path_to/research/alabi" >> ~/.bash_profile
echo "export PYTHONPATH=$PYTHONPATH:/path_to/research/vplanet" >> ~/.bash_profile
echo "export PYTHONPATH=$PYTHONPATH:/path_to/research/vplanet_inference" >> ~/.bash_profile