diff --git a/Framework/Algorithms/test/Stitch1DTest.h b/Framework/Algorithms/test/Stitch1DTest.h index 61738af90b39d903f167470ddda345c26443a33e..4c9d31d090ad65cfbfe101bb14614805195e2bf6 100644 --- a/Framework/Algorithms/test/Stitch1DTest.h +++ b/Framework/Algorithms/test/Stitch1DTest.h @@ -40,10 +40,12 @@ MatrixWorkspace_sptr createWorkspace(const HistogramX &xData, Workspace2D_sptr outWS = boost::make_shared<Workspace2D>(); outWS->initialize(nSpec, xData.size(), yData.size()); + for (int i = 0; i < nSpec; ++i) { outWS->mutableY(i) = yData; outWS->mutableE(i) = eData; outWS->mutableX(i) = xData; + outWS->setPointStandardDeviations(i, yData.size()); outWS->mutableDx(i) = Dx; } @@ -119,11 +121,11 @@ public: HistogramDx dx(10, 0.); // Pre-canned workspace to stitch - a = createWorkspace(x, y, e, dx); + this->a = createWorkspace(x, y, e, dx); y = {2., 2., 2., 2., 2., 2., 2., 0., 0., 0.}; // Another pre-canned workspace to stitch - b = createWorkspace(x, y, e, dx); + this->b = createWorkspace(x, y, e, dx); this->x.assign(x.begin(), x.end()); }