Package PyDSTool :: Module MProject :: Class condition
[hide private]
[frames] | no frames]

Class condition

source code

object --+
         |
        condition

Model context condition, made up of a boolean composition of wanted and unwanted features. This is specified by a dictionary of feature objects mapping to True (wanted feature) or False (unwanted feature).

Instance Methods [hide private]
 
__init__(self, feature_composition_dict)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
keys(self) source code
 
values(self) source code
 
items(self) source code
 
__getitem__(self, name) source code
 
__contains__(self, name) source code
 
set_ref_traj(self, ref_traj)
Set reference trajectory for the features (if used, otherwise will be ignored or overridden in feature _local_init methods).
source code
 
evaluate(self, target)
Apply conditions to trajectory segments and returns True if all are satisfied.
source code
 
__call__(self, target)
Apply conditions to trajectory segments and returns True if all are satisfied.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
str(x)
source code
 
_find_idx(self) source code
 
_residual_info(self)
Update metric information used for residual / objective function, from all sub-features.
source code
 
collate_results(self, result_name, merge_lists=False, feature_names=None) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, feature_composition_dict)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)