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

Class ParamCardIterator

source code

object --+        
         |        
      dict --+    
             |    
     ParamCard --+
                 |
                ParamCardIterator

A class keeping track of the scan: flag in the param_card and having an __iter__() function to scan over all the points of the scan.

Instance Methods [hide private]
new empty dictionary

__init__(self, input_path=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self)
generate the next param_card (in a abstract way) related to the scan.
source code
 
next(self, autostart=False)
call the next iteration value
source code
 
iterate(self)
create the actual generator
source code
 
store_entry(self, run_name, cross, error=None, param_card_path=None)
store the value of the cross-section
source code
 
write_summary(self, path, order=None, lastline=False, nbcol=20) source code
 
get_next_name(self, run_name)
returns a smart name for the next run
source code

Inherited from ParamCard: __getitem__, __setitem__, add_param, analyze_param_card, append, check_and_remove, convert_to_complex_mass_scheme, copy_param, create_diff, do_help, get_missing_block, get_value, has_block, has_param, mod_param, order_block, read, remove_block, remove_param, rename_blocks, secure_slha2, update_dependent, write, write_inc_file

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

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

Class Variables [hide private]
  logging = True

Inherited from ParamCard: header, mp_prefix

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, input_path=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__iter__(self)

source code 

generate the next param_card (in a abstract way) related to the scan. Technically this generates only the generator.

Overrides: dict.__iter__