11#include "MantidAlgorithms/DllConfig.h"
63 const std::string
name()
const override {
return "CompareWorkspaces"; }
66 int version()
const override {
return 1; }
67 const std::vector<std::string>
seeAlso()
const override {
68 return {
"CheckWorkspacesMatch",
"CompareSampleLogs",
"CloneWorkspace"};
72 const std::string
category()
const override {
return "Utility\\Workspaces"; }
75 const std::string
summary()
const override {
76 return "Compares two workspaces for equality. This algorithm is mainly "
77 "intended for use by the Mantid development team as part of the "
82 Parallel::ExecutionMode
83 getParallelExecutionMode(
const std::map<std::string, Parallel::StorageMode> &storageModes)
const override;
84 void execMasterOnly()
override;
95 bool processGroups()
override;
98 void processGroups(
const std::shared_ptr<const API::WorkspaceGroup> &groupOne,
99 const std::shared_ptr<const API::WorkspaceGroup> &groupTwo);
119 double tolWeight, int64_t tolPulse,
bool printdetails,
size_t &numdiffpulse,
120 size_t &numdifftof,
size_t &numdiffboth,
size_t &numdiffweight)
const;
123 void recordMismatch(
const std::string &msg, std::string ws1 =
"", std::string ws2 =
"");
125 bool relErr(
double x1,
double x2,
double errorVal)
const;
128 bool m_result{
false};
134 std::unique_ptr<API::Progress> m_progress =
nullptr;
141 bool m_parallelComparison{
false};
Base class from which all concrete algorithm classes should be derived.
This class stores information regarding an experimental run as a series of log entries.
This class stores information about the sample used in particular run.
Compares two workspaces for equality.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
const std::string summary() const override
Algorithm's summary for use in the GUI and help.
API::ITableWorkspace_sptr m_messages
Mismatch messages that resulted from comparison.
const std::string name() const override
Algorithm's name.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
This class is intended to fulfill the design specified in <https://github.com/mantidproject/documents...
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< const ITableWorkspace > ITableWorkspace_const_sptr
shared pointer to Mantid::API::ITableWorkspace (const version)
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< LeanElasticPeaksWorkspace > LeanElasticPeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
Helper class which provides the Collimation Length for SANS instruments.