Skip to content
Snippets Groups Projects
Commit 4bf55022 authored by Sam Jenkins's avatar Sam Jenkins
Browse files

Re #24073 working Tests

parent e70aa536
No related branches found
No related tags found
No related merge requests found
from systemtesting import MantidSystemTest from systemtesting import MantidSystemTest
from wish.reduce import Wish_Run from wish.reduce import Wish
from mantid import config from mantid import config
import mantid.simpleapi as mantid import mantid.simpleapi as mantid
...@@ -48,18 +48,19 @@ class WISHPowderReductionTest(MantidSystemTest): ...@@ -48,18 +48,19 @@ class WISHPowderReductionTest(MantidSystemTest):
def runTest(self): def runTest(self):
os.makedirs(output_dir) os.makedirs(output_dir)
Wish_Run("__main__", calibration_dir+"/", input_dir, output_dir, True) wish_test = Wish("__main__", calibration_dir+"/", output_dir + "/", True, input_dir)
wish_test.reduce()
self.clearWorkspaces() self.clearWorkspaces()
def validate(self): def validate(self):
return "w40503-1_10foc", "WISH40503-1_10raw.nxs", \ #return "w40503-1_10foc", "WISH40503-1_10raw.nxs", \
"w40503-2_9foc", "WISH40503-2_9raw.nxs", \ # "w40503-2_9foc", "WISH40503-2_9raw.nxs", \
"w40503-3_8foc", "WISH40503-3_8raw.nxs", \ # "w40503-3_8foc", "WISH40503-3_8raw.nxs", \
"w40503-4_7foc", "WISH40503-4_7raw.nxs", \ # "w40503-4_7foc", "WISH40503-4_7raw.nxs", \
"w40503-5_6foc", "WISH40503-5_6raw.nxs" return "w40503-5_6foc", "WISH40503-5_6raw.nxs"
def clearWorkspaces(self): def clearWorkspaces(self):
deletews = ["w40503-" + str(i) + "foc" for i in range(1, 11)] deletews = ["w40503-" + str(i) + "foc" for i in range(5, 7)]
for ws in deletews: for ws in deletews:
mantid.DeleteWorkspace(ws) mantid.DeleteWorkspace(ws)
mantid.DeleteWorkspace(ws + "-d") mantid.DeleteWorkspace(ws + "-d")
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment