Skip to content

Commit f94fc69

Browse files
committed
feat: add second arg instead of username
1 parent e6e6eab commit f94fc69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/CLUSTER.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ running on the cluster.
1818

1919
```bash
2020
# for creating a personal environment
21-
source scripts/stability-cluster/env_creation.sh ${USER}
21+
source scripts/stability-cluster/env_creation.sh jack/ jack/
2222

2323
# for creating an specific experiment environment
24-
source scripts/stability-cluster/env_creation.sh experiments/my-experiment
24+
source scripts/stability-cluster/env_creation.sh experiments/my-experiment jack/
2525
```

scripts/stability-cluster/env_creation.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#! /bin/bash
2+
### This script creates a conda environment for chemnlp
3+
### The first arg ($1) is the prefix directory where the environment is saved
4+
### The second arg ($2) is the directory to use when building the environment
5+
26
## Must already have miniconda installed!
37
export CONDA_ENV_PATH=/fsx/proj-chemnlp/$1/conda/env/chemnlp-standard
48
export PYTHON_VER=3.8
@@ -13,7 +17,7 @@ conda activate ${CONDA_ENV_PATH}
1317

1418
# Python requirements
1519
## cd into your directory inside of proj-chemnlp
16-
cd /fsx/proj-chemnlp/${USER}
20+
cd /fsx/proj-chemnlp/$2
1721

1822
## clone + submodules (ok if exists)
1923
[ ! -d 'chemnlp' ] && git clone --recurse-submodules --remote-submodules git@github.com:OpenBioML/chemnlp.git

0 commit comments

Comments
 (0)