ATLAS Offline Software
Classes | Functions
python.Enums Namespace Reference

Classes

class  BeamType
 
class  BunchStructureSource
 
class  FlagEnum
 
class  Format
 
class  HIMode
 
class  LHCPeriod
 
class  MetadataCategory
 
class  ProductionStep
 
class  Project
 

Functions

def validrunformat (lhcperiod)
 

Function Documentation

◆ validrunformat()

def python.Enums.validrunformat (   lhcperiod)

Definition at line 58 of file Enums.py.

58 def validrunformat(lhcperiod):
59  import re
60  for item in lhcperiod.__members__.values():
61  if not re.match("^RUN[0-9]$", item.value):
62  raise ValueError("Value not in a format RUN+single digit %s", item.value)
63  return lhcperiod
64 
65 
66 @validrunformat
python.Enums.validrunformat
def validrunformat(lhcperiod)
Definition: Enums.py:58