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 57 of file validateAlignments.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 61 of file validateAlignments.py.

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

References submitPVValidationJobs.split().

Member Function Documentation

◆ createJob()

def validateAlignments.ValidationBase.createJob (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 102 of file validateAlignments.py.

102  def createJob( self ):
103  pass
104 

◆ getValidation()

def validateAlignments.ValidationBase.getValidation (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 110 of file validateAlignments.py.

110  def getValidation( self ):
111  pass
112 

◆ needsproxy()

def validateAlignments.ValidationBase.needsproxy (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 114 of file validateAlignments.py.

114  def needsproxy(self):
115  pass
116 
117 

◆ runJob()

def validateAlignments.ValidationBase.runJob (   self)

Reimplemented in validateAlignments.ValidationJobMultiIOV, and validateAlignments.ValidationJob.

Definition at line 106 of file validateAlignments.py.

106  def runJob( self ):
107  pass
108 

Member Data Documentation

◆ __metaclass__

validateAlignments.ValidationBase.__metaclass__ = ABCMeta
staticprivate

Definition at line 59 of file validateAlignments.py.

◆ alignments

validateAlignments.ValidationBase.alignments

Definition at line 66 of file validateAlignments.py.

◆ commandLineOptions

validateAlignments.ValidationBase.commandLineOptions

◆ config

validateAlignments.ValidationBase.config

◆ preexisting

validateAlignments.ValidationBase.preexisting

◆ valName

validateAlignments.ValidationBase.valName

Definition at line 80 of file validateAlignments.py.

Referenced by validateAlignments.ValidationJob.runJob().

◆ valSection

validateAlignments.ValidationBase.valSection

Definition at line 93 of file validateAlignments.py.

◆ valType

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