IntervalProperty

class glotaran.model.interval_property.IntervalProperty[source]

Bases: object

Applies a relation between clps as

source = parameter * target.

Attributes Summary

interval

ModelProperty is an extension of the property decorator.

Methods Summary

applies

Returns true if value is in one of the intervals.

as_dict

fill

from_dict

markdown

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
classmethod from_dict(values: dict) cls
property interval: model_property.glotaran_property_type

ModelProperty is an extension of the property decorator.

It adds convenience functions for meta programming model items.

markdown(all_parameters: ParameterGroup = None, initial_parameters: ParameterGroup = None) MarkdownStr
validate(model: Model, parameters: ParameterGroup | None = None) list[str]