Skip to content
Snippets Groups Projects
Commit b48663d8 authored by Gagik Vardanyan's avatar Gagik Vardanyan
Browse files

Re #23692 make MaskBinsIf to mask bins, instead of flag masked

parent c2c1ed16
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ void MaskBinsIf::exec() {
e = it->countStandardDeviation();
dx = hasDx ? it->centerError() : 0.;
if (parser.Eval() != 0.) {
outputWorkspace->flagMasked(index, bin);
outputWorkspace->maskBin(index, bin);
}
}
progress->report();
......
......@@ -187,11 +187,10 @@ Mantid::API::Run &getSampleDetailsDeprecated(MatrixWorkspace &self) {
}
/**
* @brief maskedBinsIndices This is an anonymous wrapper around the homonym
* method of MatrixWorkspace. This takes int as argument and returns a vector of
* ints to python, unlike the C++ size_t, since python does not speak unsigned
* This is an anonymous wrapper around the homonym method of MatrixWorkspace.
* This takes int as argument since python does not speak unsigned.
* @param self
* @param i : workspace index
* @param i : workspace index [int]
* @return bin indices of masked bins at the workspace index given
*/
std::vector<size_t> maskedBinsIndices(MatrixWorkspace &self, const int i) {
......
......@@ -19,8 +19,6 @@ The variables entering the criteria are reserved as follows:
- dx : the error on the bin center
- s : the value of spectrum axis, which has to be SpectraAxis or NumericAxis.
Note that it preserves the data in the masked bins, just flags them as masked.
Usage
-----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment