Skip to content

Commit

Permalink
Deactivate current env before activating new one
Browse files Browse the repository at this point in the history
This is to address a bug where a currently active env would cause the
hpc init script to load the flepimop env not cleanly. Simplest solution
is to always deactivate before activating. Redundant in the case
that the flepimop env is already active, but easier than trying to
determine the current env. No downside if no env is active.
  • Loading branch information
TimothyWillard committed Nov 7, 2024
1 parent 092069a commit 1e8cbd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions batch/hpc_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ if [ -z "${FLEPI_CONDA}" ]; then
fi
echo "Using '$FLEPI_CONDA' for \$FLEPI_CONDA."
fi
conda deactivate
conda activate $FLEPI_CONDA

# Check the conda environment is valid
Expand Down

0 comments on commit 1e8cbd8

Please sign in to comment.