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

Set facility and instrument

parent 85e66633
......@@ -120,6 +120,8 @@ class ReflectometryILLPreprocessTest(unittest.TestCase):
self.assertAlmostEqual(numpy.rad2deg(two_theta_fg), 0., delta=0.1)
def testTwoInputFiles(self):
config.setString("default.facility", "ILL")
config.setString("default.instrument", "D17")
outWSName = 'outWS'
args = {
'Run': 'ILL/D17/317369, ILL/D17/317370.nxs',
......@@ -132,6 +134,8 @@ class ReflectometryILLPreprocessTest(unittest.TestCase):
outWS = alg.getProperty('OutputWorkspace').value
self.assertEqual(outWS.getAxis(0).getUnit().caption(), 'Wavelength')
self.assertEqual(mtd.getObjectNames(), [])
config.setString("default.facility", "NONE")
config.setString("default.instrument", "NONE")
if __name__ == "__main__":
......
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