11#include <boost/python/class.hpp>
23 if (!workspaceExtractor.check())
24 throw std::invalid_argument(
"Incorrect type. Expected a workspace.");
26 if (
auto exptInfo = std::dynamic_pointer_cast<ExperimentInfo>(workspaceExtractor()))
29 throw std::invalid_argument(
"Incorrect type. Expected a workspace type derived from ExperimentInfo.");
34 class_<MultipleExperimentInfos, boost::noncopyable>(
"MultipleExperimentInfos", no_init)
35 .def(
"getExperimentInfo",
38 (arg(
"self"), arg(
"expInfoIndex")),
"Return the experiment info at the given index.")
39 .def(
"addExperimentInfo", addExperimentInfo, (arg(
"self"), arg(
"ExperimentalInfo")),
40 "Add a new :class:`~mantid.api.ExperimentInfo` to this "
41 ":class:`~mantid.api.IMDWorkspace`")
43 "Return the number of :class:`~mantid.api.ExperimentInfo` objects,")
45 (arg(
"self"), arg(
"MultipleExperimentInfos")),
"Copy the :class:`~mantid.api.ExperimentInfo` from another");
void export_MultipleExperimentInfos()
This class is shared by a few Workspace types and holds information related to a particular experimen...
Small class that allows a MDEventWorkspace or a MDHistoWorkspace to hold several ExperimentInfo class...
uint16_t getNumExperimentInfo() const
void copyExperimentInfos(const MultipleExperimentInfos &other)
Copy the experiment infos from another.
ExperimentInfo_sptr getExperimentInfo(const uint16_t expInfoIndex)
Get the ExperimentInfo for the given Experiment-Info Index.
uint16_t addExperimentInfo(const ExperimentInfo_sptr &ei)
Add a new ExperimentInfo to this MDEventWorkspace.
Base Workspace Abstract Class.
std::shared_ptr< ExperimentInfo > ExperimentInfo_sptr
Shared pointer to ExperimentInfo.