Source code for glotaran.model.weight

"""The Weight property class."""

from typing import List
from typing import Tuple

from .attribute import model_attribute


[docs]@model_attribute( properties={ "datasets": {type: List[str]}, "global_interval": { "type": List[Tuple[float, float]], "default": None, "allow_none": True, }, "model_interval": { "type": List[Tuple[float, float]], "default": None, "allow_none": True, }, "value": {"type": float}, }, no_label=True, ) class Weight: """The `Weight` class describes a value by which a dataset will scaled. `global_interval` and `model_interval` are optional. The whole range of the dataset will be used if not set. """