Label

This a python binding to the C++ class Mantid::Kernel::Label.

bases: mantid.kernel.Unit

class mantid.kernel.Label
__init__()

Raises an exception This class cannot be instantiated from Python

caption((Unit)arg1) → str :

Return the full name of the unit

label((Unit)arg1) → str :

Returns a plain-text label to be used as the symbol for the unit (deprecated, use symbol())

name((Unit)arg1) → str :

Return the full name of the unit (deprecated, use caption)

setLabel((Label)arg1, (str)caption, (str)label) → None :
Set the caption (e.g.Temperature) & label (K) on the unit
setLabel( (Label)arg1, (str)caption, (UnitLabel)label) -> None :
Set the caption (e.g.Temperature) & label (K) on the unit, See the UnitLabel class
symbol((Unit)arg1) → UnitLabel :

Returns a UnitLabel object that holds information on the symbol to use for unit

unitID((Unit)arg1) → str :

Returns the string ID of the unit. This may/may not match its name