ATLAS Offline Software
Functions | Variables
python.evaluateDiffRoot Namespace Reference

Functions

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

Variables

 parser
 
 usage
 
 type
 
 dest
 
 default
 
 help
 
 None
 
 action
 
 False
 
 options
 
 args
 
 debugmode
 
 infile_name
 
 selected_tests
 
 test_dict
 

Function Documentation

◆ getResults()

def python.evaluateDiffRoot.getResults (   infile,
  test_dict 
)

Definition at line 13 of file evaluateDiffRoot.py.

13 def 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()

def python.evaluateDiffRoot.getTests (   infile,
  selected_test 
)

Definition at line 37 of file evaluateDiffRoot.py.

37 def 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()

def python.evaluateDiffRoot.printDict (   test_dict)

Definition at line 82 of file evaluateDiffRoot.py.

82 def 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 """

◆ reportDiffs()

def python.evaluateDiffRoot.reportDiffs (   test_dict)

Definition at line 65 of file evaluateDiffRoot.py.

65 def 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()

def python.evaluateDiffRoot.reportOverview (   test_dict)

Definition at line 55 of file evaluateDiffRoot.py.

55 def 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

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

python.evaluateDiffRoot.infile_name

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

Definition at line 100 of file evaluateDiffRoot.py.

◆ selected_tests

python.evaluateDiffRoot.selected_tests

Definition at line 111 of file evaluateDiffRoot.py.

◆ test_dict

python.evaluateDiffRoot.test_dict

Definition at line 116 of file evaluateDiffRoot.py.

◆ type

python.evaluateDiffRoot.type

Definition at line 101 of file evaluateDiffRoot.py.

◆ usage

python.evaluateDiffRoot.usage

Definition at line 100 of file evaluateDiffRoot.py.

DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename R::value_type > sorted(const R &r, PROJ proj={})
Helper function to create a sorted vector from an unsorted range.
python.evaluateDiffRoot.reportDiffs
def reportDiffs(test_dict)
Definition: evaluateDiffRoot.py:65
python.evaluateDiffRoot.getTests
def getTests(infile, selected_test)
Definition: evaluateDiffRoot.py:37
vtune_athena.format
format
Definition: vtune_athena.py:14
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.evaluateDiffRoot.getResults
def getResults(infile, test_dict)
Definition: evaluateDiffRoot.py:13
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:26
Trk::open
@ open
Definition: BinningType.h:40
python.evaluateDiffRoot.printDict
def printDict(test_dict)
Definition: evaluateDiffRoot.py:82
python.evaluateDiffRoot.reportOverview
def reportOverview(test_dict)
Definition: evaluateDiffRoot.py:55