forked from shxr3f/PyHipp-23
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrplhighpass-sort-slurm.sh
More file actions
33 lines (26 loc) · 1.03 KB
/
rplhighpass-sort-slurm.sh
File metadata and controls
33 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Submit this script with: sbatch <this-filename>
#SBATCH --time=24:00:00 # walltime
#SBATCH --ntasks=1 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --cpus-per-task=1 # number of processors per task
#SBATCH -J "rplhighpass-sort" # job name
## /SBATCH -p general # partition (queue)
#SBATCH -o rplhighpass-sort-slurm.%N.%j.out # STDOUT
#SBATCH -e rplhighpass-sort-slurm.%N.%j.err # STDERR
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
/data/miniconda3/bin/conda init
source ~/.bashrc
envarg=`/data/src/PyHipp/envlist.py`
conda activate $envarg
python -u -c "import PyHipp as pyh; \
import time; \
pyh.RPLHighPass(saveLevel=1); \
from PyHipp import mountain_batch; \
mountain_batch.mountain_batch(); \
from PyHipp import export_mountain_cells; \
export_mountain_cells.export_mountain_cells(); \
print(time.localtime());"
conda deactivate
/data/src/PyHipp/envlist.py $envarg
#aws sns publish --topic-arn arn:aws:sns:ap-southeast-1:119845913857:awsnotify --message "RPLS1JobDone"