Skip to content

Commit 1c3b11d

Browse files
Fix SNSPowderRedux system tests for alma9 (#39231)
When starting to work to migrate from centos7 to alma9 (mantidproject/dockerfiles#111), some tests failed as seen in [build 205](https://builds.mantidproject.org/job/Core_Team_test_pipeline/205/). The failing tests (in case the log disappears) are `SystemTests.SNSPowderRedux.PG3Analysis`, `SystemTests.SNSPowderRedux.PG3StripPeaks`, and `SystemTests.BayesQuasiTest.BayesQuasiTest`. This fixes the SNSPowderRedux tests by updating the reference results after manually inspecting them. There is also a minor change to the test which reduces the runtime of the test by 2-3 seconds.
1 parent 4f28cd6 commit 1c3b11d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Testing/SystemTests/tests/framework/SNSPowderRedux.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,10 @@ def runTest(self):
248248
UnwrapSNS(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", LRef=62)
249249
RemoveLowResTOF(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", ReferenceDIFC=1500)
250250
ConvertUnits(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", Target="dSpacing")
251-
Rebin(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", Params=(0.1, -0.0004, 2.2))
252251
SortEvents(InputWorkspace="PG3_4866")
253-
DiffractionFocussing(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", GroupingWorkspace="PG3_group")
252+
DiffractionFocussing(
253+
InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", GroupingWorkspace="PG3_group", DMin=0.1, Delta=-0.0004, DMax=2.2
254+
)
254255
EditInstrumentGeometry(Workspace="PG3_4866", PrimaryFlightPath=60, SpectrumIDs=[1], L2=[3.2208], Polar=[90.8074], Azimuthal=[0])
255256
ConvertUnits(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", Target="TOF")
256257
Rebin(InputWorkspace="PG3_4866", OutputWorkspace="PG3_4866", Params=[-0.0004])
@@ -274,12 +275,12 @@ def runTest(self):
274275
LoadGSS(Filename=self.ref_file, OutputWorkspace="PG3_4866_golden")
275276

276277
def validateMethod(self):
277-
self.tolerance = 1.0e-1
278+
self.tolerance = 0.1
278279
self.tolerance_is_rel_err = True
279280
return "ValidateWorkspaceToWorkspace"
280281

281282
def validate(self):
282-
self.tolerance = 1.0e-1
283+
self.tolerance = 0.1
283284
self.tolerance_is_rel_err = True
284285
return ("PG3_4866", "PG3_4866_golden")
285286

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
abedd395d477ae260a181debe077bdb1
1+
5380fd5143bdc3b515d265c79741ac85
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23fc8417590fea78521c64c1828ae428
1+
bb32cf1db4398867e36ba9e5f427d4dc

0 commit comments

Comments
 (0)