Skip to content

Commit

Permalink
Prevent the possibility to use a string somewhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Oct 11, 2023
1 parent 78777d4 commit 089b407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PyMca5/PyMcaPhysics/xrf/ClassMcaTheory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 089b407

Please sign in to comment.