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 26 of file DumperConfig.py.

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

◆ find_file()

def python.DumperConfig.find_file (   fname,
  refPaths 
)

Definition at line 12 of file DumperConfig.py.

12 def 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.

python.DumperConfig.checknewvars
def checknewvars(output)
Definition: DumperConfig.py:26
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:232
python.DumperConfig.find_file
def find_file(fname, refPaths)
Definition: DumperConfig.py:12