Skip to content

Commit a8b617a

Browse files
authored
Merge pull request #37949 from mantidproject/37920-IsisIndirectInelastic-OSIRISIqtAndIqtFitMulti-ornl
Fix to system test `ISISIndirectInelastic.OSIRISIqtAndIqtFitMulti` - `ornl-next`
2 parents 38612b5 + 6e3b6a7 commit a8b617a

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Testing/SystemTests/tests/framework/ISISIndirectInelastic.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,18 +1003,15 @@ def __init__(self):
10031003
self.spec_max = 41
10041004

10051005
def skipTests(self):
1006-
# In its current state this test is not fit for purpose. There is a large amount of randomness present such
1007-
# that a very very wide relative tolerance is required to pass reliably (50+). This was discovered after
1008-
# a change to CompareWorkspaces that made the comparison actually relative. Prior, this test was actually
1009-
# using an absolute tolerance of 5.0. A redesign is needed to remove some of the randomness or determine
1010-
# the actual required tolerance.
1011-
return True
1006+
# This test was once giving issues. It seems the failures were caused by the large fluctuations in the
1007+
# uncertainties (i.e. delta delta y) due to the Monte Carlo calculation. Turning off the check of uncertainity
1008+
# should fix this test, combined with a reasonable absolute tolerance of 0.05.
1009+
return False
10121010

10131011
def get_reference_files(self):
1014-
# Relative tolerance is used because the calculation of Monte Carlo errors means the Iqt errors are randomized
1015-
# within a set amount
1016-
self.tolerance = 5.0
1017-
self.tolerance_is_rel_err = True
1012+
self.tolerance = 0.05
1013+
self.tolerance_is_rel_err = False
1014+
self.disableChecking = ["Uncertainty"]
10181015
return ["II.OSIRISIqt.nxs", "II.OSIRISIqtFitMulti.nxs"]
10191016

10201017

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- fix comparison operation in ``ISISIndirectInelastic.OSIRISIqtAndIqtFitMulti`` system test by turning off uncertainty check, using absolute comparison, and adjusting the tolerance.

0 commit comments

Comments
 (0)