ZeroConstraint

class glotaran.model.constraint.ZeroConstraint[source]

Bases: glotaran.model.interval_property.IntervalProperty

A zero constraint sets the calculated matrix row of a compartment to 0 in the given intervals.

Attributes Summary

interval

target

Methods Summary

applies

Returns true if value is in one of the intervals.

as_dict

fill

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.

from_dict

get_parameters

Returns all parameter full labels of the item.

mprint

validate

Methods Documentation

applies(value: float) bool

Returns true if value is in one of the intervals.

Parameters

value (float) –

Returns

applies

Return type

bool

as_dict() dict
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.

classmethod from_dict(values: dict) cls
get_parameters() list[str]

Returns all parameter full labels of the item.

property interval: prop_type
mprint(parameters: ParameterGroup = None, initial_parameters: ParameterGroup = None) str
property target: prop_type
validate(model: Model, parameters: ParameterGroup | None = None) list[str]