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 59 of file Enums.py.

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