Skip to content
Snippets Groups Projects
Commit cbf4e370 authored by Elliot Oram's avatar Elliot Oram
Browse files

Adapt test case to use run number rather than workspace

* Another test case must be added to ensure this can be done by looking at a saved file in the output directory

Refs #21294
parent bb126283
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,9 @@ class TotalScatteringTest(stresstesting.MantidStressTest):
pdf_output = None
def runTest(self):
focused_ws = mantid.Load(Filename="ISIS_Powder-POLARIS98533_FocusSempty.nxs") # Reference from focus output
self.pdf_output = run_total_scattering(focused_ws, False)
# Load Focused ws
mantid.LoadNexus(Filename="ISIS_Powder-POLARIS98533_FocusSempty.nxs", OutputWorkspace='98533-Results-TOF-Grp')
self.pdf_output = run_total_scattering('98533', False)
def validate(self):
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
......@@ -117,9 +118,9 @@ class TotalScatteringTest(stresstesting.MantidStressTest):
places=3)
def run_total_scattering(focused_ws, merge_banks):
pdf_inst_obj = setup_inst_object(mode="pdf")
return pdf_inst_obj.create_total_scattering_pdf(focused_workspace=focused_ws,
def run_total_scattering(run_number, merge_banks):
pdf_inst_obj = setup_inst_object(mode="PDF")
return pdf_inst_obj.create_total_scattering_pdf(run_number=run_number,
merge_banks=merge_banks)
......
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