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

Classes

class  Dumper

Functions

 find_file (fname, refPaths)
 checknewvars (output)

Variables

 ATLAS_REFERENCE_TAG = os.environ['ATLAS_REFERENCE_TAG']

Function Documentation

◆ checknewvars()

python.DumperConfig.checknewvars ( output)

Definition at line 26 of file DumperConfig.py.

26def checknewvars (output):
27 names = set()
28 for l in output.split ('\n'):
29 if not l: continue
30 if l.startswith ('+++') or l.startswith ('---'): continue
31 if l[0] == '-': return None
32 if l[0] == '+':
33 pos = l.find (':')
34 if l.startswith ('+ ') and pos > 0:
35 names.add (l[6:pos])
36 else:
37 return None
38 l = list(names)
39 l.sort()
40 return l
41
42
STL class.

◆ find_file()

python.DumperConfig.find_file ( fname,
refPaths )

Definition at line 12 of file DumperConfig.py.

12def find_file (fname,refPaths):
13 for p in refPaths:
14 if p:
15 path = os.path.join (p, fname)
16 if os.path.exists (path):
17 return path
18 print ('ERROR: Cannot find file: ', fname)
19 return None
20
21
22#
23# If a new xAOD variable appears, print a warning, but don't treat
24# it as a failure.
25#

Variable Documentation

◆ ATLAS_REFERENCE_TAG

python.DumperConfig.ATLAS_REFERENCE_TAG = os.environ['ATLAS_REFERENCE_TAG']

Definition at line 10 of file DumperConfig.py.