Installation and Dependencies¶
SPLAT is best forked from the github site https://github.com/aburgasser/splat/, which is updated on a regular basis. The command is:
>> git clone https://github.com/aburgasser/splat.git
Note that pip
installation IS NOT CURRENTLY WORKING, so best to install from github.
In addition, you will need to set up your environment variables to find the SPLAT code
For MAC/UNIX:¶
Best: create an environment variable called SPLAT_PATH and set it to the root directory of the SPLAT code; in bash environment, add the line
export SPLAT_PATH=[path to splat]
to your .bashrc or .bash_profile, where [path to splat] is the full path to your SPLAT python code (e.g., /Users/adam/python_codes/splat/). If you have a newwer Mac OS, which uses the zsh environment, add the same line to your .zshrc or .zsh_profileIf you use the PYTHONPATH environment variable, add the root directory of the SPLAT code to it by adding the line
export PYTHONPATH=[path to splat]:${PYTHONPATH}
to your .bashrc / .bash_profile or .zshrc / .zsh_profile filesadd the root directory of the SPLAT code to your system PATH variable by adding the line
export PATH=[path to splat]:${PATH}
to your .bashrc / .bash_profile or .zshrc / .zsh_profile files
For Windows:¶
SPLAT has been found to work fine in the Anaconda environment, and you can set environmental variables by entering the following lines on your Anaconda terminal:
conda env config vars set SPLAT_PATH=[path to splat]
conda env config vars set PYTHONPATH=[path to splat]
where again [path to splat] is the full path to your SPLAT python code (e.g., /Users/adam/python_codes/splat/).
The SPLAT code uses the following external packages that are contained in the Ananconda installation:
The following external packages must be installed separately (using pip):
It also use the following internal (python) packages (no installation should be needed):
base64
copy
csv
datetime
division (for Python v2.X)
glob
math
os
print_function (for Python v2.X)
random
re
shutil
sys
string (for Python v2.X)
time
warnings
SPLAT has been tested in Python 2.7.X and 3.5.X.
SPLAT has not yet reached v1.0, so bugs are common. Please help us squish them by sending bug reports to aburgasser@ucsd.edu or start an issue on the github site.
Search