Installation
Tested on Linux Mint and Lubuntu (Debian-based syntax used here).
Create a virtual environment
It is highly recommended to use a virtual environment to install software with several requirements. We move to the folder where we will install the virtual environment (do not forget to replace the names between angle brackets). The created environment can be then activated using source:
python3 -m venv <path_to_virtual_environment>/<venv_tiebenn>
source <path_to_virtual_environment>/<venv_tiebenn>/bin/activate
Tip
You can add an alias by including the following line at the end of your ~/.bashrc for quick access:
alias <alias_name>='source <path_to_virtual_environment>/<venv_tiebenn>/bin/activate'
Save changes. Then reload:
exec bash
Installing TieBeNN and its Python dependencies
In case you plan to work on a CPU machine, after activating the virtual environment by using the previously created alias, type:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
If you are working on a GPU machine, then you can skip this line. Then, you can proceed to clone the TieBeNN repository and install it:
git clone https://github.com/Cthuulhaa/tiebenn.git
cd tiebenn
pip install .
pip install -r optional.txt
Note
You are free to modify or comment-out those packages you will not need.
Installing NonLinLoc and setting paths
(Follow these steps in case NonLinLoc is not installed) NonLinLoc must be individually compiled to make sure it is compatible with the machine where TieBeNN will be running. First we will create a convenient directory to install NonLinLoc and within it, we clone the NonLinLoc repository:
mkdir -p <some_convenient_directory>
cd <some_convenient_directory>
git clone https://github.com/ut-beg-texnet/NonLinLoc.git
cd NonLinLoc/src
mkdir bin
cmake .
make
cd bin
cp Vel2Grid* Grid2* NLLoc ../../../
Important
Do not use NonLinLoc’s latest release directly, as it might contain unresolved bugs, whose fix are still unreleased.
Set NonLinLoc in your PATH:
echo 'export PATH=${PATH}:<some_convenient_directory>' >> ~/.bashrc
exec bash