From 089b407a680f5fdc383575cdc28373c8285ec3f0 Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Wed, 11 Oct 2023 18:45:23 +0200 Subject: [PATCH] Prevent the possibility to use a string somewhere. --- PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py b/PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py index 9fb975424..6ef4d59f9 100644 --- a/PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py +++ b/PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py @@ -227,6 +227,8 @@ def __configure(self): energyscatter = [] for i in range(len(self.config['fit']['energy'])): + if self.config['fit']['energy'][i] == "None": + self.config['fit']['energy'][i] = None if self.config['fit']['energyflag'][i]: if self.config['fit']['energy'][i] is not None: energyflag.append(self.config['fit']['energyflag'][i])