CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
produceOfflineValidationTex.ValidationPlots Class Reference

Public Member Functions

def __init__ (self, path)
 

Public Attributes

 path
 
 plots
 

Detailed Description

Definition at line 32 of file produceOfflineValidationTex.py.

Constructor & Destructor Documentation

def produceOfflineValidationTex.ValidationPlots.__init__ (   self,
  path 
)

Definition at line 33 of file produceOfflineValidationTex.py.

References cmsRelvalreport.exit.

33  def __init__(self, path):
34  if not os.path.isdir(path):
35  print "Error: Directory "+path+" not found!"
36  exit(1)
37  if not path.endswith('/'):
38  path += '/'
39  path = path.replace('\\', '/') # Beacause LaTeX has issues with '\'.
40  self.path = path
41  # List of plot files in given directory:
42  self.plots = [file for file in os.listdir(path)
43  if file.endswith('.eps')]
44 
45 
46 # Layout of plots on a page:

Member Data Documentation

produceOfflineValidationTex.ValidationPlots.path
produceOfflineValidationTex.ValidationPlots.plots

Definition at line 42 of file produceOfflineValidationTex.py.