Package models :: Module check_param_card :: Class ParamCardRule
[hide private]
[frames] | no frames]

Class ParamCardRule

source code

object --+
         |
        ParamCardRule

A class for storing the linked between the different parameter of
    the param_card.
Able to write a file 'param_card_rule.dat' 
Able to read a file 'param_card_rule.dat'
Able to check the validity of a param_card.dat

Instance Methods [hide private]
 
__init__(self, inputpath=None)
initialize an object
source code
 
add_zero(self, lhablock, lhacode, comment='')
add a zero rule
source code
 
add_one(self, lhablock, lhacode, comment='')
add a one rule
source code
 
add_identical(self, lhablock, lhacode, lhacode2, comment='')
add a rule for identical value
source code
 
add_opposite(self, lhablock, lhacode, lhacode2, comment='')
add a rule for identical value
source code
 
add_rule(self, lhablock, lhacode, rule, comment='')
add a rule for constraint value
source code
 
write_file(self, output=None) source code
 
load_rule(self, inputpath)
import a validity rule file
source code
 
check_param_card(self, path, modify=False)
Check that the restriction card are applied
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
read_param_card(path)
read a param_card and return a dictionary with the associated value.
source code
 
write_param_card(path, data)
read a param_card and return a dictionary with the associated value.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, inputpath=None)
(Constructor)

source code 

initialize an object

Overrides: object.__init__