SpectralShapeOne

class glotaran.builtin.models.spectral.shape.SpectralShapeOne[source]

Bases: object

A constant spectral shape with value 1

Attributes Summary

label

type

Methods Summary

calculate

calculate calculates the shape.

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

calculate(axis: numpy.ndarray) numpy.ndarray[source]

calculate calculates the shape.

Parameters

axis (np.ndarray) – The axis to calculate the shape on.

Returns

shape

Return type

numpy.ndarray

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