OnlyConstraint
- class glotaran.builtin.models.kinetic_spectrum.spectral_constraints.OnlyConstraint[source]
Bases:
object
A only constraint sets the calculated matrix row of a compartment to 0 outside the given intervals.
Attributes Summary
Methods Summary
Returns true if the index is in one of the intervals.
Returns a copy of the {cls._name} instance with all members which are Parameters are replaced by the value of the corresponding parameter in the parameter group.
Methods Documentation
- applies(index: Any) bool [source]
Returns true if the index is in one of the intervals.
- Parameters
index –
- Returns
applies
- Return type
- fill(model: Model, parameters: ParameterGroup) cls
Returns a copy of the {cls._name} instance with all members which are Parameters are replaced by the value of the corresponding parameter in the parameter group.
- Parameters
model – A glotaran model.
parameter (ParameterGroup) – The parameter group to fill from.