CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
pickleFileCreater Namespace Reference

Functions

def createPickleFile
 

Variables

string __author__ = "Aurelija"
 
string __date__ = "$2010-07-26 12.51.12$"
 

Function Documentation

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

Definition at line 9 of file pickleFileCreater.py.

References join(), and print().

9 
10 def createPickleFile(fileName, listRule, path = os.getcwd()):
11 
12  dict = {}
13 
14  try:
15  for filePath, lines in listRule:
16  dict[filePath] = lines
17  file = open(join(path, fileName), 'wb')
18  pickle.dump(dict, file)
19  file.close()
20  except TypeError:
21  print('Wrong types')
22  except IOError:
23  print('Cannot open %s file'%fileName)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Variable Documentation

string pickleFileCreater.__author__ = "Aurelija"

Definition at line 2 of file pickleFileCreater.py.

string pickleFileCreater.__date__ = "$2010-07-26 12.51.12$"

Definition at line 3 of file pickleFileCreater.py.