Commit 917363bc authored by Borreguero Calvo, Jose's avatar Borreguero Calvo, Jose
Browse files

Merge branch 'nr_launcher' into 'main'

add nr_launcher script

See merge request !33
parents 4fe6b2df 2eb9b177
Loading
Loading
Loading
Loading
Loading

nr_launcher

0 → 100644
+15 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
CONDA_ENVIRON=refl1d

if [ -v CONDA_ENVIRON ]; then
    # import library to do the real work
    source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

    # put together arguments - conda_env, application, location, arguments passed to this script
    args=("${CONDA_ENVIRON}" "python" "/SNS/REF_L/shared/launcher/launcher.py" "$@")

    # start the application
    activate_and_launch "${args[@]}"
fi