From 6f4d2f1aabd475faa2b4602ddfd4204a81bb6cab Mon Sep 17 00:00:00 2001 From: Owen Arnold Date: Wed, 18 Feb 2015 12:55:12 +0000 Subject: [PATCH] refs #11056. Tracked down MDAlgorithmsTest issues --- .../Mantid/Framework/MDAlgorithms/test/CentroidPeaksMD2Test.h | 4 ++-- Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMDTest.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMD2Test.h b/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMD2Test.h index 31584d4caf27..3adbed5c426d 100644 --- a/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMD2Test.h +++ b/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMD2Test.h @@ -98,9 +98,9 @@ class CentroidPeaksMD2Test : public CxxTest::TestSuite Peak pIn(inst, 1, 1.0, startPos ); if (CoordinatesToUse == "Q (lab frame)") - pIn.setQLabFrame(startPos); + pIn.setQLabFrame(startPos, 1 /*sample to detector distance*/); else if (CoordinatesToUse == "Q (sample frame)") - pIn.setQSampleFrame(startPos); + pIn.setQSampleFrame(startPos, 1 /*sample to detector distance*/); else if (CoordinatesToUse == "HKL") pIn.setHKL(startPos); peakWS->addPeak( pIn ); diff --git a/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMDTest.h b/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMDTest.h index 4e7338b07bdd..445df41cf2d4 100644 --- a/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMDTest.h +++ b/Code/Mantid/Framework/MDAlgorithms/test/CentroidPeaksMDTest.h @@ -98,9 +98,9 @@ class CentroidPeaksMDTest : public CxxTest::TestSuite Peak pIn(inst, 1, 1.0, startPos ); if (CoordinatesToUse == "Q (lab frame)") - pIn.setQLabFrame(startPos); + pIn.setQLabFrame(startPos, 1 /*sample to detector distance*/); else if (CoordinatesToUse == "Q (sample frame)") - pIn.setQSampleFrame(startPos); + pIn.setQSampleFrame(startPos, 1 /*sample to detector distance*/); else if (CoordinatesToUse == "HKL") pIn.setHKL(startPos); peakWS->addPeak( pIn );