23using namespace Kernel;
29 "The name of the workspace that will be modified.");
31 "A comma-separated list of row numbers. Row numbering starts with 0.");
42 std::set<size_t, std::greater<size_t>> sortedRows(rows.begin(), rows.end());
43 auto it = sortedRows.begin();
44 for (; it != sortedRows.end(); ++it) {
45 if (*it >= tw->rowCount())
48 pw->removePeak(
static_cast<int>(*it));
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
A property class for workspaces.
void init() override
Initialize the static base properties.
void exec() override
Execute.
Support for a property that holds an array of values.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
@ InOut
Both an input & output workspace.