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

◆ getTests()

def python.evaluateDiffRoot.getTests (   infile,
  selected_test 
)

Definition at line 38 of file evaluateDiffRoot.py.

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

◆ printDict()

def python.evaluateDiffRoot.printDict (   test_dict)

Definition at line 83 of file evaluateDiffRoot.py.

83 def printDict(test_dict):
84  print ("Overview:")
85  print ("==========")
86  reportOverview(test_dict)
87  print()
88  print()
89  print()
90  print ("Details")
91  print ("========")
92  reportDiffs(test_dict)
93 
94 
95 
96 
97 """
98  Main function here
99 """

◆ reportDiffs()

def python.evaluateDiffRoot.reportDiffs (   test_dict)

Definition at line 66 of file evaluateDiffRoot.py.

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

◆ reportOverview()

def python.evaluateDiffRoot.reportOverview (   test_dict)

Definition at line 56 of file evaluateDiffRoot.py.

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

Variable Documentation

◆ action

python.evaluateDiffRoot.action

Definition at line 105 of file evaluateDiffRoot.py.

◆ args

python.evaluateDiffRoot.args

Definition at line 106 of file evaluateDiffRoot.py.

◆ debugmode

python.evaluateDiffRoot.debugmode

Definition at line 108 of file evaluateDiffRoot.py.

◆ default

python.evaluateDiffRoot.default

Definition at line 102 of file evaluateDiffRoot.py.

◆ dest

python.evaluateDiffRoot.dest

Definition at line 102 of file evaluateDiffRoot.py.

◆ False

python.evaluateDiffRoot.False

Definition at line 105 of file evaluateDiffRoot.py.

◆ help

python.evaluateDiffRoot.help

Definition at line 102 of file evaluateDiffRoot.py.

◆ infile_name

python.evaluateDiffRoot.infile_name

Definition at line 110 of file evaluateDiffRoot.py.

◆ None

python.evaluateDiffRoot.None

Definition at line 103 of file evaluateDiffRoot.py.

◆ options

python.evaluateDiffRoot.options

Definition at line 106 of file evaluateDiffRoot.py.

◆ parser

python.evaluateDiffRoot.parser

Definition at line 101 of file evaluateDiffRoot.py.

◆ selected_tests

python.evaluateDiffRoot.selected_tests

Definition at line 112 of file evaluateDiffRoot.py.

◆ test_dict

python.evaluateDiffRoot.test_dict

Definition at line 117 of file evaluateDiffRoot.py.

◆ type

python.evaluateDiffRoot.type

Definition at line 102 of file evaluateDiffRoot.py.

◆ usage

python.evaluateDiffRoot.usage

Definition at line 101 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:66
python.evaluateDiffRoot.getTests
def getTests(infile, selected_test)
Definition: evaluateDiffRoot.py:38
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:83
python.evaluateDiffRoot.reportOverview
def reportOverview(test_dict)
Definition: evaluateDiffRoot.py:56