From a40ce9ea11465e7fd0d226ad2609299945c30e7f Mon Sep 17 00:00:00 2001 From: Mathieu Doucet <doucetm@ornl.gov> Date: Mon, 30 Jul 2018 14:38:59 -0400 Subject: [PATCH] default value --- .../PythonInterface/plugins/algorithms/LRDirectBeamSort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/PythonInterface/plugins/algorithms/LRDirectBeamSort.py b/Framework/PythonInterface/plugins/algorithms/LRDirectBeamSort.py index 864f4534cc2..03b1e2b36b7 100644 --- a/Framework/PythonInterface/plugins/algorithms/LRDirectBeamSort.py +++ b/Framework/PythonInterface/plugins/algorithms/LRDirectBeamSort.py @@ -46,7 +46,7 @@ class CompareTwoNXSDataForSFcalculator(object): self.resultComparison = -1 if pcharge1 < pcharge2 else 1 - def compareParameter(self, param, order, tolerance=None): + def compareParameter(self, param, order, tolerance=0.0): """ Compare parameters for the two runs :param string param: name of the parameter to compare @@ -59,7 +59,7 @@ class CompareTwoNXSDataForSFcalculator(object): _paramNexusToCompareWith = float(_nexusToCompareWithRun.getProperty(param).value[0]) _paramNexusToPosition = float(_nexusToPositionRun.getProperty(param).value[0]) - if tolerance and abs(_paramNexusToPosition - _paramNexusToCompareWith) <= tolerance: + if abs(_paramNexusToPosition - _paramNexusToCompareWith) <= tolerance: return 0 if order == 'ascending': -- GitLab