From 2e24ebbe2908a11d3e8e31815bbbf204c1b50c92 Mon Sep 17 00:00:00 2001
From: Elliot Oram <ElliotAOram@users.noreply.github.com>
Date: Tue, 3 Mar 2020 13:35:52 +0000
Subject: [PATCH] use absolute tolerance

---
 .../Diffraction/isis_powder/polaris_routines/polaris_algs.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/Diffraction/isis_powder/polaris_routines/polaris_algs.py b/scripts/Diffraction/isis_powder/polaris_routines/polaris_algs.py
index 04bde50b218..125d6d63427 100644
--- a/scripts/Diffraction/isis_powder/polaris_routines/polaris_algs.py
+++ b/scripts/Diffraction/isis_powder/polaris_routines/polaris_algs.py
@@ -181,10 +181,10 @@ def _determine_chopper_mode(ws):
     if ws.getRun().hasProperty('Frequency'):
         frequency = ws.getRun()['Frequency'].timeAverageValue()
         print("Found chopper frequency of {} in log file.".format(frequency))
-        if math.isclose(frequency, 50, rel_tol=1):
+        if math.isclose(frequency, 50, abs_tol=1):
             print("Automatically chose Rietveld mode")
             return 'Rietveld', polaris_advanced_config.rietveld_focused_cropping_values
-        if math.isclose(frequency, 0, rel_tol=1):
+        if math.isclose(frequency, 0, abs_tol=1):
             print("Automatically chose PDF mode")
             return 'PDF', polaris_advanced_config.pdf_focused_cropping_values
     else:
-- 
GitLab