20 return std::make_shared<EqualBinSizesValidator>(*
this);
29 return "Enter an existing workspace";
30 if (!
value->isCommonBins())
31 return "The workspace must have common bin boundaries for all histograms";
32 if (
value->getNumberHistograms() == 0 ||
value->blocksize() == 0)
33 return "Enter a workspace with some data in it";
double value
The value of the point.
const double m_errorLevel
Error threshold.
std::string checkValidity(const MatrixWorkspace_sptr &value) const override
Check for validity.
Kernel::IValidator_sptr clone() const override
Clone the current state.
EqualBinSizesValidator(const double errorLevel)
Constructor: sets properties.
EqualBinsChecker : Checks for evenly spaced bins.
virtual std::string validate() const
Perform validation of the given X array.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.