Commit 32864183 authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #14124. Fix more test usage.

parent 8e8b4480
......@@ -112,7 +112,7 @@ public:
// Create the x-axis for histogramming.
MantidVecPtr x1;
MantidVec &xRef = x1.access();
xRef.resize(numBins);
xRef.resize(numBins);bi
for (int i = 0; i < numBins; ++i) {
xRef[i] = i * binDelta;
}
......
......@@ -243,6 +243,7 @@ void LoadSINQFocus::runLoadInstrument() {
// different IDF
loadInst->setPropertyValue("InstrumentName", m_instrumentName);
loadInst->setProperty("OverwriteSpectraMap", Mantid::Kernel::OptionalBool(true));
loadInst->setProperty<MatrixWorkspace_sptr>("Workspace", m_localWorkspace);
loadInst->execute();
} catch (...) {
......
......@@ -163,6 +163,7 @@ private:
// Path to test input file assumes Test directory checked out from SVN
std::string inputFile = "INES_Definition.xml";
loader.setPropertyValue("Filename", inputFile);
loader.setProperty("OverwriteSpectraMap", Mantid::Kernel::OptionalBool(true));
loader.setPropertyValue("Workspace", input);
loader.execute();
......
......@@ -194,6 +194,7 @@ private:
std::string inputFile = "INES_Definition.xml";
loader.setPropertyValue("Filename", inputFile);
loader.setPropertyValue("Workspace", input);
loader.setProperty("OverwriteSpectraMap", Mantid::Kernel::OptionalBool(true));
loader.execute();
// mask the detector
......
......@@ -177,6 +177,7 @@ public:
loaderIDF2.setPropertyValue(
"Filename", "IDFs_for_UNIT_TESTING/IDF_for_UNIT_TESTING2.xml");
loaderIDF2.setPropertyValue("Workspace", wsName);
loaderIDF2.setProperty("OverwriteSpectraMap", Mantid::Kernel::OptionalBool(true));
TS_ASSERT_THROWS_NOTHING(loaderIDF2.execute());
TS_ASSERT(loaderIDF2.isExecuted());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment