CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Private Attributes
validateAlignments.ValidationBase Class Reference

— Classes —############################ More...

Inheritance diagram for validateAlignments.ValidationBase:
validateAlignments.ValidationJob validateAlignments.ValidationJobMultiIOV

Public Member Functions

def __init__ (self, validation, config, options)
 
def createJob (self)
 
def getValidation (self)
 
def needsproxy (self)
 
def runJob (self)
 

Public Attributes

 alignments
 
 commandLineOptions
 
 config
 
 preexisting
 
 valName
 
 valSection
 
 valType
 

Static Private Attributes

 __metaclass__ = ABCMeta
 

Detailed Description

— Classes —############################

Definition at line 58 of file validateAlignments.py.

Constructor & Destructor Documentation

◆ __init__()

def validateAlignments.ValidationBase.__init__ (   self,
  validation,
  config,
  options 
)

Definition at line 62 of file validateAlignments.py.

62  def __init__( self, validation, config, options ):
63 
64  if validation[1] == "":
65  # intermediate syntax
66  valString = validation[0].split( "->" )[0]
67  self.alignments = validation[0].split( "->" )[1]
68  # force user to use the normal syntax
69  if "->" in validation[0]:
70  msg = ("Instead of using the intermediate syntax\n'"
71  +valString.strip()+"-> "+alignments.strip()
72  +":'\nyou have to use the now fully supported syntax \n'"
73  +valString.strip()+": "
74  +alignments.strip()+"'.")
75  raise AllInOneError(msg)
76  else:
77  valString = validation[0]
78  self.alignments = validation[1]
79  valString = valString.split()
80  self.valType = valString[0]
81  self.valName = valString[1]
82  self.commandLineOptions = options
83  self.config = config
84  self.preexisting = ("preexisting" in self.valType)
85  if self.valType[0] == "*":
86  self.valType = self.valType[1:]
87  self.preexisting = True
88 
89  # workaround for intermediate parallel version
90  if self.valType == "offlineParallel":
91  print ("offlineParallel and offline are now the same. To run an offline parallel validation,\n"
92  "just set parallelJobs to something > 1. There is no reason to call it offlineParallel anymore.")
93  self.valType = "offline"
94  self.valSection = self.valType + ":" + self.valName
95  if not self.config.has_section( self.valSection ):
96  raise AllInOneError("Validation '%s' of type '%s' is requested in"
97  " '[validation]' section, but is not defined."
98  "\nYou have to add a '[%s]' section."
99  %( self.valName, self.valType, self.valSection ))
100 
101 

References submitPVValidationJobs.split().

Member Function Documentation

◆ createJob()

def validateAlignments.ValidationBase.createJob (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 103 of file validateAlignments.py.

103  def createJob( self ):
104  pass
105 

◆ getValidation()

def validateAlignments.ValidationBase.getValidation (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 111 of file validateAlignments.py.

111  def getValidation( self ):
112  pass
113 

◆ needsproxy()

def validateAlignments.ValidationBase.needsproxy (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 115 of file validateAlignments.py.

115  def needsproxy(self):
116  pass
117 
118 

◆ runJob()

def validateAlignments.ValidationBase.runJob (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 107 of file validateAlignments.py.

107  def runJob( self ):
108  pass
109 

Member Data Documentation

◆ __metaclass__

validateAlignments.ValidationBase.__metaclass__ = ABCMeta
staticprivate

Definition at line 60 of file validateAlignments.py.

◆ alignments

validateAlignments.ValidationBase.alignments

Definition at line 67 of file validateAlignments.py.

◆ commandLineOptions

validateAlignments.ValidationBase.commandLineOptions

◆ config

validateAlignments.ValidationBase.config

◆ preexisting

validateAlignments.ValidationBase.preexisting

◆ valName

validateAlignments.ValidationBase.valName

Definition at line 81 of file validateAlignments.py.

Referenced by validateAlignments.ValidationJob.runJob().

◆ valSection

validateAlignments.ValidationBase.valSection

Definition at line 94 of file validateAlignments.py.

◆ valType

validateAlignments.ValidationBase.valType
submitPVValidationJobs.split
def split(sequence, size)
Definition: submitPVValidationJobs.py:352