-
Notifications
You must be signed in to change notification settings - Fork 5
/
sub_condor_keras_training.csh
46 lines (39 loc) · 1.06 KB
/
sub_condor_keras_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
45
#!/bin/tcsh
### Replace the following lines according to your setup.
### 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
source /afs/cern.ch/work/a/antoniov/env/uproot/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/keras_training.py
python $EXEC/keras_training.py
cp *.joblib $OUTPUT
cp *.h5 $OUTPUT