forked from championgy8686/PyHipp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypipeline-slurm.sh
executable file
·15 lines (11 loc) · 1.26 KB
/
mypipeline-slurm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Submit this script with: sbatch <this-filename>
#SBATCH --time=1:00:00 # walltime
#SBATCH --ntasks=1 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH -J "pipe" # job name
## /SBATCH -p general # partition (queue)
#SBATCH -o pipe-slurm.%N.%j.out # STDOUT
#SBATCH -e pipe-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 os; import time; t0 = time.time(); print(time.localtime()); DPT.objects.processDirs(dirs=None, objtype=pyh.RPLParallel, saveLevel=1); DPT.objects.processDirs(dirs=None, objtype=pyh.RPLSplit, channel=[9, 31, 34, 56, 72, 93, 119, 120]); DPT.objects.processDirs(dirs=None, objtype=pyh.RPLLFP, saveLevel=1); DPT.objects.processDirs(dirs=None, objtype=pyh.RPLHighPass, saveLevel=1); DPT.objects.processDirs(dirs=None, objtype=pyh.Unity, saveLevel=1); pyh.EDFSplit(); os.chdir('session01'); pyh.aligning_objects(); pyh.raycast(1); 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);"