diff --git a/juno-amr.py b/juno_amr.py similarity index 100% rename from juno-amr.py rename to juno_amr.py diff --git a/run_pipeline.sh b/run_pipeline.sh index d5fd12a..f785db1 100755 --- a/run_pipeline.sh +++ b/run_pipeline.sh @@ -52,25 +52,34 @@ esac #----------------------------------------------# -# Create/update necessary environments -PATH_MAMBA_YAML="envs/mamba.yaml" -PATH_MASTER_YAML="envs/juno_amr_master.yaml" -MAMBA_NAME=$(head -n 1 ${PATH_MAMBA_YAML} | cut -f2 -d ' ') -MASTER_NAME=$(head -n 1 ${PATH_MASTER_YAML} | cut -f2 -d ' ') +## make sure conda works -echo -e "\nUpdating necessary environments to run the pipeline..." - -# Removing strict mode because it sometimes breaks the code for -# activating an environment and for testing whether some variables -# are set or not -set +euo pipefail +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/mnt/miniconda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/mnt/miniconda/etc/profile.d/conda.sh" ]; then + . "/mnt/miniconda/etc/profile.d/conda.sh" + else + export PATH="/mnt/miniconda/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<