-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_Summary.py
executable file
·27 lines (22 loc) · 1.1 KB
/
run_Summary.py
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
from Core.Utils.git import getGitDescribe,getGitDiff
from Core.Utils.printFunc import pyPrint
# Standard package
import imp,sys,os,time
cfgFileName = sys.argv[1]
file = open( cfgFileName,'r')
cfg = imp.load_source( 'UFNTuple.__cfg_to_run__', cfgFileName, file)
componentList = cfg.componentList
outputInfo = cfg.outputInfo
endSequence = cfg.endSequence
mergeSampleDict = cfg.mergeSampleDict if hasattr(cfg,"mergeSampleDict") else {}
mergeSigSampleDict = cfg.mergeSigSampleDict if hasattr(cfg,"mergeSigSampleDict") else {}
verbose = cfg.verbose if hasattr(cfg,"verbose") else False
skipGitDetail = cfg.skipGitDetail if hasattr(cfg,"skipGitDetail") else False
if verbose:
pyPrint("Starting")
start_time = time.time()
pyPrint("\nBegin Summarising\n")
pyPrint("\nInput used: "+outputInfo.outputDir+"\n")
endSequence.run(outputInfo,componentList,mergeSampleDict=mergeSampleDict,mergeSigSampleDict=mergeSigSampleDict)
elapsed_time = time.time() - start_time
pyPrint("Time used: "+str(elapsed_time)+"s")