ATLAS Offline Software
Classes | Functions | Variables
python.DumperConfig Namespace Reference

Classes

class  Dumper
 

Functions

def find_file (fname, refPaths)
 
def checknewvars (output)
 

Variables

 ATLAS_REFERENCE_TAG = os.environ['ATLAS_REFERENCE_TAG']
 

Function Documentation

◆ checknewvars()

def python.DumperConfig.checknewvars (   output)

Definition at line 28 of file DumperConfig.py.

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

◆ find_file()

def python.DumperConfig.find_file (   fname,
  refPaths 
)

Definition at line 14 of file DumperConfig.py.

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

Variable Documentation

◆ ATLAS_REFERENCE_TAG

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

Definition at line 12 of file DumperConfig.py.

python.DumperConfig.checknewvars
def checknewvars(output)
Definition: DumperConfig.py:28
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:224
python.DumperConfig.find_file
def find_file(fname, refPaths)
Definition: DumperConfig.py:14