WorkspaceUnitValidator

This a python binding to the C++ class Mantid::API::WorkspaceUnitValidator.

bases: mantid.api.MatrixWorkspaceValidator

class mantid.api.WorkspaceUnitValidator((object)arg1, (str)unit)
__init__((object)arg1, (str)unit) → None :

Checks the workspace has the given unit along the X-axis

isValid((MatrixWorkspaceValidator)self, (MatrixWorkspace)value) → str :

Returns an empty string if the value is considered valid, otherwise a string defining the error is returned.