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

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

as_dict() dict
property datasets: prop_type
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 global_interval: prop_type
property model_interval: prop_type
mprint(parameters: ParameterGroup = None, initial_parameters: ParameterGroup = None) str
validate(model: Model, parameters: ParameterGroup | None = None) list[str]
property value: prop_type