ATLAS Offline Software
Loading...
Searching...
No Matches
python.evaluateDiffRoot Namespace Reference

Functions

 getResults (infile, test_dict)
 getTests (infile, selected_test)
 reportOverview (test_dict)
 reportDiffs (test_dict)
 printDict (test_dict)

Variables

 parser = OptionParser(usage="\n ./sstat \n")
 type
 dest
 default
 help
 None
 action
 False
 options
 args
 debugmode = options.verbose
str infile_name = 'ESDTAGCOMM_comparison_diffroot_log'
 selected_tests = None
 test_dict = getTests(options.infile, selected_tests)

Function Documentation

◆ getResults()

python.evaluateDiffRoot.getResults ( infile,
test_dict )

Definition at line 13 of file evaluateDiffRoot.py.

13def getResults(infile, test_dict):
14 for test in test_dict.keys():
15 for ftype in ['ESD','AOD']:
16 linenr = 0
17 f = open(infile, 'r')
18 doRead = False
19 for line in f:
20 linenr += 1
21 if line.startswith('Py:diff-root INFO old:') and test in line and ftype in line:
22 doRead = True
23 if line.startswith('Py:Acmd'):
24 doRead = False
25 if doRead and ("leaves differ" in line or "WARNING" in line):
26 if line.split('\n')[0] not in test_dict[test][ftype]:
27 test_dict[test][ftype].append(line.split('\n')[0])
28
29 if debugmode and doRead:
30 print ("DEBUG: %s: %s" %(linenr,line.split('\n')[0]))
31
32 return test_dict
33
34"""
35 create initial dict including all tests which have been probed
36"""

◆ getTests()

python.evaluateDiffRoot.getTests ( infile,
selected_test )

Definition at line 37 of file evaluateDiffRoot.py.

37def getTests(infile, selected_test):
38 test_dict = {}
39 f = open(infile, 'r')
40 for line in f:
41 if "CHANGED" in line or "IDENTICAL" in line:
42 test = line.split()[0]
43 if selected_test and test not in selected_test:
44 continue
45 test_dict[test] = { 'ESD' : [],
46 'AOD' : [],
47 'status' : line.split()[1]}
48 f.close()
49 return test_dict
50
51
52"""
53 prints sorted summary of tests
54"""

◆ printDict()

python.evaluateDiffRoot.printDict ( test_dict)

Definition at line 82 of file evaluateDiffRoot.py.

82def printDict(test_dict):
83 print ("Overview:")
84 print ("==========")
85 reportOverview(test_dict)
86 print()
87 print()
88 print()
89 print ("Details")
90 print ("========")
91 reportDiffs(test_dict)
92
93
94
95
96"""
97 Main function here
98"""
void print(char *figname, TCanvas *c1)

◆ reportDiffs()

python.evaluateDiffRoot.reportDiffs ( test_dict)

Definition at line 65 of file evaluateDiffRoot.py.

65def reportDiffs(test_dict):
66 list_sorted = sorted(test_dict.keys())
67 for test in list_sorted:
68 if test_dict[test]['status'] == 'IDENTICAL':
69 continue
70 print (test, test_dict[test]['status'])
71 for item in ['ESD','AOD']:
72 print (item)
73 for line in test_dict[test][item]:
74 print (line)
75 print()
76 print()
77
78
79"""
80 print all
81"""

◆ reportOverview()

python.evaluateDiffRoot.reportOverview ( test_dict)

Definition at line 55 of file evaluateDiffRoot.py.

55def reportOverview(test_dict):
56 list_sorted = sorted(test_dict.keys())
57 for test in list_sorted:
58 #print ("%20s %s" %(test, test_dict[test]['status']))
59 print ('{0:50} {1:10}'.format(test, test_dict[test]['status']))
60
61
62"""
63 prints detailed diff on screen
64"""

Variable Documentation

◆ action

python.evaluateDiffRoot.action

Definition at line 104 of file evaluateDiffRoot.py.

◆ args

python.evaluateDiffRoot.args

Definition at line 105 of file evaluateDiffRoot.py.

◆ debugmode

python.evaluateDiffRoot.debugmode = options.verbose

Definition at line 107 of file evaluateDiffRoot.py.

◆ default

python.evaluateDiffRoot.default

Definition at line 101 of file evaluateDiffRoot.py.

◆ dest

python.evaluateDiffRoot.dest

Definition at line 101 of file evaluateDiffRoot.py.

◆ False

python.evaluateDiffRoot.False

Definition at line 104 of file evaluateDiffRoot.py.

◆ help

python.evaluateDiffRoot.help

Definition at line 101 of file evaluateDiffRoot.py.

◆ infile_name

str python.evaluateDiffRoot.infile_name = 'ESDTAGCOMM_comparison_diffroot_log'

Definition at line 109 of file evaluateDiffRoot.py.

◆ None

python.evaluateDiffRoot.None

Definition at line 102 of file evaluateDiffRoot.py.

◆ options

python.evaluateDiffRoot.options

Definition at line 105 of file evaluateDiffRoot.py.

◆ parser

python.evaluateDiffRoot.parser = OptionParser(usage="\n ./sstat \n")

Definition at line 100 of file evaluateDiffRoot.py.

◆ selected_tests

python.evaluateDiffRoot.selected_tests = None

Definition at line 111 of file evaluateDiffRoot.py.

◆ test_dict

python.evaluateDiffRoot.test_dict = getTests(options.infile, selected_tests)

Definition at line 116 of file evaluateDiffRoot.py.

◆ type

python.evaluateDiffRoot.type

Definition at line 101 of file evaluateDiffRoot.py.