IntervalProperty

class glotaran.model.interval_property.IntervalProperty[source]

Bases: object

Applies a relation between clps as

source = parameter * target.

Attributes Summary

interval

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[source]

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
validate(model: Model, parameters: ParameterGroup | None = None) list[str]