CMS 3D CMS Logo

Functions | Variables
pickleFileCreater Namespace Reference

Functions

def createPickleFile (fileName, listRule, path=os.getcwd())
 

Variables

 __author__
 
 __date__
 

Function Documentation

◆ createPickleFile()

def pickleFileCreater.createPickleFile (   fileName,
  listRule,
  path = os.getcwd() 
)

Definition at line 9 of file pickleFileCreater.py.

9 def createPickleFile(fileName, listRule, path = os.getcwd()):
10 
11  dict = {}
12 
13  try:
14  for filePath, lines in listRule:
15  dict[filePath] = lines
16  file = open(join(path, fileName), 'w')
17  pickle.dump(dict, file)
18  file.close()
19  except TypeError:
20  print('Wrong types')
21  except IOError:
22  print('Cannot open %s file'%fileName)

References join(), and edm.print().

Variable Documentation

◆ __author__

pickleFileCreater.__author__
private

Definition at line 2 of file pickleFileCreater.py.

◆ __date__

pickleFileCreater.__date__
private

Definition at line 3 of file pickleFileCreater.py.

pickleFileCreater.createPickleFile
def createPickleFile(fileName, listRule, path=os.getcwd())
Definition: pickleFileCreater.py:9
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66