forked from antoniovilela/pps-dilepton-analysis-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sub_condor_bdt_training.csh
45 lines (38 loc) · 1.1 KB
/
sub_condor_bdt_training.csh
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
34
35
36
37
38
39
40
41
42
43
44
#!/bin/tcsh
### Replace the following lines according to your setup.
### The pps-dilepton-analysis dir contains the create_table.py script and select_events.py module as in the repository:
### git clone https://github.com/antoniovilela/pps-dilepton-analysis-notebook.git pps-dilepton-analysis
source /afs/cern.ch/work/a/antoniov/env/uproot4/bin/activate.csh
set EXEC=/eos/home-a/antoniov/SWAN_projects/pps-dilepton-analysis
set OUTPUT=/eos/home-a/antoniov/SWAN_projects/pps-dilepton-analysis/model
###
#set file=$1
#set label=$2
#set option1="$3"
#set option2="$4"
#set option3="$5"
#set option4="$6"
#set option5="$7"
#set option6="$8"
#echo "file: "$file
#echo "label: "$label
#echo "option: "$option1
#echo "option: "$option2
#echo "option: "$option3
#echo "option: "$option4
#echo "option: "$option5
#echo "option: "$option6
echo $EXEC
echo $OUTPUT
if ( ! $?PYTHONPATH ) then
setenv PYTHONPATH ${EXEC}
else
setenv PYTHONPATH ${PYTHONPATH}:${EXEC}
endif
echo PYTHONPATH set to $PYTHONPATH
env
echo $PWD
echo 'Running...'
echo python $EXEC/bdt_training.py
python $EXEC/bdt_training.py
cp *.joblib $OUTPUT