From a2a09aa098dc4638ae9bf40a1f90da4d42c19d01 Mon Sep 17 00:00:00 2001
From: Mathieu Doucet <doucetm@ornl.gov>
Date: Fri, 29 Jan 2016 15:59:31 -0500
Subject: [PATCH] Re #15118 fix direct beam determination

---
 Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py b/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
index 23314553d5f..a4f0d6f3553 100644
--- a/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
+++ b/Framework/PythonInterface/plugins/algorithms/LRAutoReduction.py
@@ -82,8 +82,8 @@ class LRAutoReduction(PythonAlgorithm):
             # Type 2 is zero-attenuator direct beams
             # Type 3 is data that we don't need to treat
         else:
-            do_reduction = not is_direct_beam
             first_run_of_set, sequence_number, is_direct_beam = self._parse_title(meta_data_run, run_number)
+            do_reduction = not is_direct_beam
 
         return first_run_of_set, sequence_number, do_reduction, is_direct_beam
 
-- 
GitLab