Commit 4a492a05 authored by Srikanth Ravipati's avatar Srikanth Ravipati Committed by Peterson, Peter
Browse files

Set and unset ISIS facility

parent 1b83b370
......@@ -154,11 +154,13 @@ private:
// return a MatrixWorkspace with detectors allowing computations of Q values
Mantid::API::MatrixWorkspace_sptr withDetectors() {
Mantid::DataHandling::LoadNexus loader;
Mantid::Kernel::ConfigService::Instance().setString("default.facility", "ISIS");
loader.initialize();
loader.setPropertyValue("Filename", "irs26173_graphite002_red");
loader.setPropertyValue("OutputWorkspace", "irs26173");
TS_ASSERT_THROWS_NOTHING(loader.execute());
TS_ASSERT(loader.isExecuted());
Mantid::Kernel::ConfigService::Instance().setString("default.facility", "NONE");
return Mantid::API::AnalysisDataService::Instance()
.retrieveWS<Mantid::API::MatrixWorkspace>("irs26173");
}
......
Markdown is supported
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