valid_label

glotaran.parameter.parameter.valid_label(parameter: Parameter, attribute: Attribute, label: str)[source]

Check if a label is a valid label for Parameter.

Parameters:
  • parameter (Parameter) – The Parameter instance

  • attribute (Attribute) – The label field.

  • label (str) – The label value.

Raises:

ValueError – Raise when the label is not valid.