HistogramValidator

This is a Python binding to the C++ class Mantid::API::HistogramValidator.

bases: mantid.api.MatrixWorkspaceValidator

class mantid.api.HistogramValidator((object)arg1[, (bool)mustBeHistogram=True])
__init__((object)arg1[, (bool)mustBeHistogram=True]) → None :

If mustBeHistogram=True then the workspace must be a histogram otherwise it must be point data.

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

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