Skip to content
Snippets Groups Projects
Commit f5a14348 authored by Simon Heybrock's avatar Simon Heybrock
Browse files

Re #16282. Fixed (irrelevant?) value change in test.

Previous refactoring changed the last x value, did not seem to make a
difference though.
parent c6327250
No related branches found
No related tags found
No related merge requests found
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include "MantidTestHelpers/WorkspaceCreationHelper.h" #include "MantidTestHelpers/WorkspaceCreationHelper.h"
#include "MantidAPI/FrameworkManager.h" #include "MantidAPI/FrameworkManager.h"
#include <numeric>
using namespace Mantid; using namespace Mantid;
using namespace Mantid::DataHandling; using namespace Mantid::DataHandling;
using namespace Mantid::API; using namespace Mantid::API;
...@@ -125,9 +123,8 @@ public: ...@@ -125,9 +123,8 @@ public:
// workspace index # // workspace index #
for (size_t pix = 0; pix < inputW->getNumberHistograms(); pix++) { for (size_t pix = 0; pix < inputW->getNumberHistograms(); pix++) {
// Set an X-axis // Set an X-axis
HistogramData::BinEdges edges(5); double x = static_cast<double>(1 + pix);
std::iota(begin(edges), end(edges), static_cast<double>(1 + pix)); inputW->setHistogram(pix, BinEdges{x + 0, x + 1, x + 2, x + 3, 1e6});
inputW->setX(pix, edges.cowData());
inputW->getSpectrum(pix).addEventQuickly(TofEvent(1000.0)); inputW->getSpectrum(pix).addEventQuickly(TofEvent(1000.0));
} }
......
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