34 std::vector<std::string> logNames;
40 const auto &wsName =
m_wsNames.first().toStdString();
41 if (ads.doesExist(wsName)) {
43 const auto &logs =
workspace->run().getLogData();
44 logNames.reserve(logs.
size());
45 std::transform(logs.cbegin(), logs.cend(), std::back_inserter(logNames),
46 [](
const auto &log) { return log->name(); });
63 std::ostringstream message;
64 message <<
"Index " <<
index <<
" out of range: number of workspaces = " <<
m_wsNames.size();
65 throw std::invalid_argument(message.str());
81 const QString &wsName)
const {
83 const auto &
workspace = wsName.toStdString();
88 throw std::invalid_argument(
"Workspace not found: " +
workspace);
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
const Run & run() const
Run details object access.
double getLogAsSingleValue(const std::string &name, Kernel::Math::StatisticType statistic=Kernel::Math::Mean) const
Base MatrixWorkspace Abstract Class.
virtual std::size_t size() const =0
Returns the number of single indexable items in the workspace.
Manage the lifetime of a class intended to be a singleton.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
StatisticType
Maps a "statistic" to a number.