Package madgraph :: Package madweight :: Module create_run :: Class check_Subprocesses_update
[hide private]
[frames] | no frames]

Class check_Subprocesses_update

source code

check if Subprocces/'listdir' files follows the last version of
./SubProcesses/'filename'. This is a protection against copy files
-normally they are just linked-

different mode are available
warning:
  0: no warning apply modification
  1: warning and apply modification
  2: warning and user choice
  3: warning but no modification
  4: no warning and no modification
  5: warning and raising error
modifrule:
  '', copy the original file
  else: apply the modification asked in modifrule

Nested Classes [hide private]
  ERROR_DifferenceInFile
Instance Methods [hide private]
 
__init__(self, filelist, listdir, modifrule='', warning=1, run=1) source code
 
compare(self) source code
 
printwarning(self, filename1, filename2) source code
 
printintmode(self, file) source code
 
modiffile(self, file, rule) source code