Skip to content

Commit

Permalink
Support M-subshell calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Jan 16, 2025
1 parent f4f8e55 commit 3b5fab4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
VERSION 5.9.5
-------------

- XRF. Support secondary excitation calculations fitting M subshells.

VERSION 5.9.4
-------------

Expand Down
13 changes: 6 additions & 7 deletions src/PyMca5/PyMcaPhysics/xrf/XRFMC/XMSOParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# The PyMca X-Ray Fluorescence Toolkit
#
# Copyright (c) 2004-2014 European Synchrotron Radiation Facility
# Copyright (c) 2004-2025 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF by the Software group.
Expand Down Expand Up @@ -42,7 +42,7 @@ def getXMSOFileFluorescenceInformation(xmsoFile):
f = ElementTree.parse(xmsoFile)
ddict = {}
root = f.getroot()
transitions = ['K', 'Ka', 'Kb', 'L', 'L1', 'L2', 'L3', 'M']
transitions = ['K', 'Ka', 'Kb', 'L', 'L1', 'L2', 'L3', 'M', 'M1', 'M2', 'M3', 'M4', 'M5']
for i in root.iter('fluorescence_line_counts'):
_logger.debug("%s", i.attrib)
for key in ['symbol', 'total_counts']:
Expand Down Expand Up @@ -116,11 +116,10 @@ def test(xmsoFile='t.xmso'):
if line == "z":
#atomic number
continue
if 1 or line in ['K', 'Ka', 'Kb', 'L', 'L1', 'L2', 'L3', 'M']:
correction1 = ddict[element][line]['correction_factor'][1]
correctionn = ddict[element][line]['correction_factor'][-1]
print("Element %s Line %s Correction 2 = %f Correction n = %f" %\
(element, line,correction1, correctionn))
correction1 = ddict[element][line]['correction_factor'][1]
correctionn = ddict[element][line]['correction_factor'][-1]
print("Element %s Line %s Correction 2 = %f Correction n = %f" %\
(element, line,correction1, correctionn))

if __name__ == "__main__":
if len(sys.argv) < 2:
Expand Down

0 comments on commit 3b5fab4

Please sign in to comment.