12#include <boost/python/class.hpp>
13#include <boost/python/object.hpp>
28 PyErr_Warn(PyExc_DeprecationWarning,
"'getEventList' is deprecated, use 'getSpectrum' instead.");
37 class_<IEventWorkspace, bases<Mantid::API::MatrixWorkspace>, boost::noncopyable>(
"IEventWorkspace", no_init)
39 "Returns the number of events in the :class:`~mantid.api.Workspace`")
41 "Returns the minimum TOF value (in microseconds) held by the "
42 ":class:`~mantid.api.Workspace`")
44 "Returns the maximum TOF value (in microseconds) held by the "
45 ":class:`~mantid.api.Workspace`")
47 "Returns the minimum pulse time held by the "
48 ":class:`~mantid.api.Workspace`")
50 "Returns the maximum pulse time held by the "
51 ":class:`~mantid.api.Workspace`")
52 .def(
"getEventList", &deprecatedGetEventList, return_internal_reference<>(), args(
"self",
"workspace_index"),
53 "Return the :class:`~mantid.api.IEventList` managing the events at "
54 "the given :class:`~mantid.api.Workspace` "
#define GET_POINTER_SPECIALIZATION(TYPE)
std::map< DeltaEMode::Type, std::string > index
void export_IEventWorkspace()
Python exports of the Mantid::API::IEventWorkspace class.
IEventList : Interface to Mantid::DataObjects::EventList class, used to expose to PythonAPI.
This class provides an interface to an EventWorkspace.
virtual Mantid::Types::Core::DateAndTime getPulseTimeMax() const =0
virtual double getTofMin() const =0
virtual Mantid::Types::Core::DateAndTime getPulseTimeMin() const =0
virtual double getTofMax() const =0
virtual void clearMRU() const =0
IEventList & getSpectrum(const size_t index) override=0
Return the underlying ISpectrum ptr at the given workspace index.
virtual std::size_t getNumberEvents() const =0
Encapsulates the registration required for an interface type T that sits on top of a Kernel::DataItem...