Skip to content
Snippets Groups Projects
Commit 61bece23 authored by Joseph Ramsay's avatar Joseph Ramsay
Browse files

Re #21350 Update total scattering system test reference values

The new cropping ranges meant that the intensity of peaks in
TotalScatteringTest was reduced, and the peak used for reference was at a
different index. It was decided that, since total scattering is at such
an early stage of development, it made most sense to just make the test
check for the new values instead
parent e83cfd5d
No related branches found
No related tags found
No related merge requests found
......@@ -107,14 +107,14 @@ class TotalScatteringTest(stresstesting.MantidStressTest):
def validate(self):
# Whilst total scattering is in development, the validation will avoid using reference files as they will have
# to be updated very frequently. In the meantime, the expected peak in the PDF at ~3.9 Angstrom will be checked.
# After rebin this is at X index 51
expected_peak_values = [0.0187231,
0.0583586,
0.2241280,
0.2752230,
1.0252800]
# After rebin this is at X index 37
expected_peak_values = [0.0002294,
0.0606328,
0.2007917,
0.1436630,
0.9823244]
for index, ws in enumerate(self.pdf_output):
self.assertAlmostEqual(ws.dataY(0)[51], expected_peak_values[index], places=3)
self.assertAlmostEqual(ws.dataY(0)[37], expected_peak_values[index], places=3)
def run_total_scattering(run_number, 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