forked from championgy8686/PyHipp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myrs3-slurm.sh
executable file
·25 lines (21 loc) · 1.17 KB
/
myrs3-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
24
25
#!/bin/bash
# Submit this script with: sbatch <this-filename>
#SBATCH --time=24:00:00 # walltime
#SBATCH --ntasks=5 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH -J "rs3" # job name
## /SBATCH -p general # partition (queue)
#SBATCH -o rs3-slurm.%N.%j.out # STDOUT
#SBATCH -e rs3-slurm.%N.%j.err # STDERR
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
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(65,97)]);
DPT.objects.processDirs(dirs=['sessioneye/array03','session01/array03'], cmd='import PyHipp as pyh; import DataProcessingTools as DPT; DPT.objects.processDirs(None, pyh.RPLLFP, saveLevel=1); DPT.objects.processDirs(None, pyh.RPLHighPass, saveLevel=1);');
os.chdir('session01/array03');
DPT.objects.processDirs(level='channel', cmd='import PyHipp as pyh; from PyHipp import mountain_batch; mountain_batch.mountain_batch(); from PyHipp import export_mountain_cells; export_mountain_cells.export_mountain_cells();');
print(time.localtime());
print(time.time()-t0);"