|
| generator |
| The generator: alignment.Constraints.
|
|
| consts |
| Generated constraints (key is constraint checksum)
|
|
basf2 python module to generate a file with a single set of constraints
(Needed especially for time-dependent constraints)
Definition at line 19 of file constraints_generator.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
generator |
|
) |
| |
Constructor
Parameters
----------
generator : alignment.Constraints
Set of constraints to be generated (defines also filename)
Definition at line 26 of file constraints_generator.py.
26 def __init__(self, generator):
32 generator : alignment.Constraints
33 Set of constraints to be generated (defines also filename)
39 self.generator = generator
42 super().set_name(super().name() +
":" + generator.filename)
◆ event()
Event: attempt to add constraints
At each event, attempt to generate the constraints and add them
to the dict (same cheksum - using only labels - means it gets overriden!)
Thus is only works if the time-dependence is set (otherwise you always get the same labels and
only the last constraint coefficients will be stored)
Definition at line 44 of file constraints_generator.py.
◆ terminate()
The documentation for this class was generated from the following file: