Weight

class glotaran.model.weight.Weight[source]

Bases: object

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.

Attributes Summary

datasets

global_interval

model_interval

value

Methods Summary

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

from_list

mprint

validate

Methods Documentation

property datasets: None
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
classmethod from_list(values: list) cls
property global_interval: List[Tuple[float, float]]
property model_interval: List[Tuple[float, float]]
mprint(parameters: ParameterGroup = None, initial_parameters: ParameterGroup = None) str
validate(model: Model, parameters=None) list[str]
property value: float