Package madgraph :: Package madweight :: Module mod_file :: Class Mod_file
[hide private]
[frames] | no frames]

Class Mod_file

source code

Instance Methods [hide private]
 
__init__(self, main_file='', rule_file='', opt={})
start the instruction of modification present in the main file if present
source code
 
mod_all_file(self, rule_pos)
apply modification following manager main_file
source code
 
mod_one_file(self, mod_file, rule_file, write='')
modify the file mod_file with rule_file instruction output will ba place in write (same file by default)
source code
 
mod_one_text(self, text, rule_file='', write='')
modify the text with rule_file instruction output will be place in write (same file by default)
source code
 
treat_begin_end_line(self, clearline, text_before, text, text_after) source code
 
treat_multiple_tag(self, text, maj, tag) source code
 
extract_modif(self, rule_file)
put the information in a dictionary
source code
 
return_mod_text(self, tag, text)
by default return the text linked to tag special tag are S-TAG_OPT: OPT=OPT1+OPT2+OPT3+...
source code
 
comment_text(self, text, comment_tag)
add comment_tag before each line
source code
 
decomment_text(self, text, comment_tag)
remove comment inserted by comment_text
source code
 
del_text(self, text) source code
 
regexp_text(self, text, exp, new, opt='')
replace the text exp (python regular expression) with new
source code
 
back_to_init_dir(self) source code
 
go_to_main_dir(self) source code
Class Variables [hide private]
  nowarning = []