CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
genericValidation.ValidationWithPlotsSummary Class Reference
Inheritance diagram for genericValidation.ValidationWithPlotsSummary:
genericValidation.ValidationWithPlotsSummaryBase genericValidation.ValidationWithPlots genericValidation.GenericValidation genericValidation.ValidationMetaClass

Public Member Functions

def getsummaryitems
 
- Public Member Functions inherited from genericValidation.ValidationWithPlotsSummaryBase
def getsummaryitems
 
def printsummaryitems
 
def summaryitemsstring
 
def writesummaryitems
 
- Public Member Functions inherited from genericValidation.ValidationWithPlots
def appendToPlots
 
def createPlottingScript
 
def doRunPlots
 
def plotsdirname
 
def plottingscriptname
 
def plottingscripttemplate
 
def runPlots
 
- Public Member Functions inherited from genericValidation.GenericValidation
def __init__
 
def createConfiguration
 
def createCrabCfg
 
def createFiles
 
def createScript
 
def filesToCompare
 
def getCompareStrings
 
def getRepMap
 
- Public Member Functions inherited from genericValidation.ValidationMetaClass
def __new__
 

Additional Inherited Members

- Public Attributes inherited from genericValidation.GenericValidation
 alignmentToValidate
 
 AutoAlternates
 
 cmssw
 
 cmsswreleasebase
 
 config
 
 configFiles
 
 crabConfigFiles
 
 general
 
 jobid
 
 jobmode
 
 name
 
 needsproxy
 
 NJobs
 
 packages
 
 randomWorkdirPart
 
 scramarch
 
 scriptFiles
 
- Static Public Attributes inherited from genericValidation.GenericValidation
string defaultReferenceName = "DEFAULT"
 
dictionary defaults
 
tuple mandatories = set()
 
dictionary needpackages = {"Alignment/OfflineValidation"}
 
dictionary optionals = {"jobmode"}
 
- Static Public Attributes inherited from genericValidation.ValidationMetaClass
list dicts = ["defaults"]
 
list sets = ["mandatories", "optionals", "needpackages"]
 

Detailed Description

Definition at line 747 of file genericValidation.py.

Member Function Documentation

def genericValidation.ValidationWithPlotsSummary.getsummaryitems (   cls,
  folder 
)

Definition at line 749 of file genericValidation.py.

References submitPVValidationJobs.split().

750  def getsummaryitems(cls, folder):
751  result = []
752  with open(os.path.join(folder, "{}Summary.txt".format(cls.__name__))) as f:
753  for line in f:
754  split = line.rstrip("\n").split("\t")
755  kwargs = {}
756  for thing in split[:]:
757  if thing.startswith("format="):
758  kwargs["format"] = thing.replace("format=", "", 1)
759  split.remove(thing)
760  if thing.startswith("latexname="):
761  kwargs["latexname"] = thing.replace("latexname=", "", 1)
762  split.remove(thing)
763  if thing.startswith("latexformat="):
764  kwargs["latexformat"] = thing.replace("latexformat=", "", 1)
765  split.remove(thing)
766 
767  name = split[0]
768  values = split[1:]
769  result.append(cls.SummaryItem(name, values, **kwargs))
770  return result