Skip to content

Commit

Permalink
Update bash scripts for training in the cluster (#234)
Browse files Browse the repository at this point in the history
* Use source activate rather than conda activate in hpc

* Remove sourcing bashrc
  • Loading branch information
sfmig authored Nov 5, 2024
1 parent 39add90 commit c992a79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bash_scripts/run_training_array.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Source bashrc
# ----------------------
# Otherwise `which python` points to the miniconda module's Python
source ~/.bashrc
# source ~/.bashrc


# memory
Expand Down Expand Up @@ -82,7 +82,7 @@ conda create \
python=3.10

# activate environment
conda activate $ENV_PREFIX
source activate $ENV_PREFIX

# install crabs package in virtual env
python -m pip install git+https://github.com/SainsburyWellcomeCentre/crabs-exploration.git@$GIT_BRANCH
Expand Down
5 changes: 3 additions & 2 deletions bash_scripts/run_training_single.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Source bashrc
# ----------------------
# Otherwise `which python` points to the miniconda module's Python
source ~/.bashrc
# source ~/.bashrc


# memory
Expand Down Expand Up @@ -67,7 +67,8 @@ conda create \
python=3.10

# activate environment
conda activate $ENV_PREFIX
source activate $ENV_PREFIX


# install crabs package in virtual env
python -m pip install git+https://github.com/SainsburyWellcomeCentre/crabs-exploration.git@$GIT_BRANCH
Expand Down

0 comments on commit c992a79

Please sign in to comment.