-
Notifications
You must be signed in to change notification settings - Fork 79
/
rs2a-slurm.sh
23 lines (20 loc) · 912 Bytes
/
rs2a-slurm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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=5 # number of processors per task
#SBATCH -J "rs2a" # job name
## /SBATCH -p general # partition (queue)
#SBATCH -o rs2a-slurm.%N.%j.out # STDOUT
#SBATCH -e rs2a-slurm.%N.%j.err # STDERR
python -u -c "import PyHipp as pyh; \
import DataProcessingTools as DPT; \
import time; \
import os; \
t0 = time.time(); \
print(time.localtime()); \
DPT.objects.processDirs(dirs=None, objtype=pyh.RPLSplit, channel=[*range(32,65)], SkipHPC=False, HPCScriptsDir = '/data/src/PyHipp/', SkipLFP=False, SkipHighPass=False, SkipSort=False); \
print(time.localtime()); \
print(time.time()-t0);"
aws sns publish --topic-arn arn:aws:sns:ap-southeast-1:043818570796:awsnotify --message "RS2a_JobDone"