Package madgraph :: Package various :: Module banner :: Class ConfigFile
[hide private]
[frames] | no frames]

Class ConfigFile

source code

object --+    
         |    
      dict --+
             |
            ConfigFile
Known Subclasses:

a class for storing/dealing with input file.

Instance Methods [hide private]
new empty dictionary

__init__(self, finput=None, **opt)
initialize a new instance.
source code
 
default_setup(self) source code
 
__copy__(self) source code
 
__add__(self, other)
define the sum
source code
 
__radd__(self, other)
define the sum
source code
True if D has a key k, else False
__contains__(self, key) source code
 
__iter__(self)
iter(x)
source code
list of D's keys
keys(self) source code
list of D's (key, value) pairs, as 2-tuples
items(self) source code
 
post_set(self, name, value, change_userdefine, raiseerror) source code
 
__setitem__(self, name, value, change_userdefine=False, raiseerror=False)
set the attribute and set correctly the type if the value is a string.
source code
 
add_param(self, name, value, system=False, comment=False, typelist=None, allowed=[])
add a default parameter to the class
source code
 
do_help(self, name)
return a minimal help for the parameter
source code
 
__getitem__(self, name)
x[y]
source code
 
set(self, name, value, changeifuserset=True, user=False, raiseerror=False)
convenient way to change attribute.
source code

Inherited from dict: __cmp__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __sizeof__, clear, copy, fromkeys, get, has_key, iteritems, iterkeys, itervalues, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Static Methods [hide private]
 
warn(text, level, raiseerror=False)
convenient proxy to raiseerror/print warning
source code
 
format_variable(value, targettype, name='unknown')
assign the value to the attribute for the given format
source code
Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, finput=None, **opt)
(Constructor)

source code 

initialize a new instance. input can be an instance of MadLoopParam, a file, a path to a file, or simply Nothing

Returns:
new empty dictionary

Overrides: object.__init__

__contains__(self, key)
(In operator)

source code 
Returns: True if D has a key k, else False
Overrides: dict.__contains__
(inherited documentation)

__iter__(self)

source code 

iter(x)

Overrides: dict.__iter__
(inherited documentation)

keys(self)

source code 
Returns: list of D's keys
Overrides: dict.keys
(inherited documentation)

items(self)

source code 
Returns: list of D's (key, value) pairs, as 2-tuples
Overrides: dict.items
(inherited documentation)

__setitem__(self, name, value, change_userdefine=False, raiseerror=False)
(Index assignment operator)

source code 

set the attribute and set correctly the type if the value is a string. change_userdefine on True if we have to add the parameter in user_set

Overrides: dict.__setitem__

__getitem__(self, name)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

set(self, name, value, changeifuserset=True, user=False, raiseerror=False)

source code 

convenient way to change attribute. changeifuserset=False means that the value is NOT change is the value is not on default. user=True, means that the value will be marked as modified by the user (potentially preventing future change to the value)