forked from provakar1994/jlab-HPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agg-g4sbs-job-summary.sh
executable file
·29 lines (23 loc) · 1.05 KB
/
agg-g4sbs-job-summary.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
26
27
28
#!/bin/bash
# ------------------------------------------------------------------------- #
# This script aggregates summary of g4sbs simulation jobs. #
# --------- #
# P. Datta <[email protected]> CREATED 05-12-2023 #
# --------- #
# ** Do not tamper with this sticker! Log any updates to the script above. #
# ------------------------------------------------------------------------- #
#SBATCH --partition=production
#SBATCH --account=halla
#SBATCH --mem-per-cpu=150
infile=$1
istitle=$2
outfile=$3
scriptdirenv=$4
# paths to necessary libraries (ONLY User specific part) ---- #
export SCRIPT_DIR=$scriptdirenv
# ----------------------------------------------------------- #
if [[ $istitle -eq 1 ]]; then
python3 $SCRIPT_DIR'/'utility.py 'grab_g4sbs_norm_factors' $infile $istitle > $outfile
else
python3 $SCRIPT_DIR'/'utility.py 'grab_g4sbs_norm_factors' $infile $istitle >> $outfile
fi