SpectralRelation

class glotaran.builtin.models.kinetic_spectrum.spectral_relations.SpectralRelation[source]

Bases: object

Attributes Summary

compartment

interval

parameter

target

Methods Summary

applies

Returns true if the index is in one of the intervals.

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

applies(index: Any)bool[source]

Returns true if the index is in one of the intervals.

Parameters

index

Returns

applies

Return type

bool

property compartment
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 interval
mprint(parameters: ParameterGroup = None, initial_parameters: ParameterGroup = None)str
property parameter
property target
validate(model: Model, parameters=None)list[str]