Skip to content

Commit

Permalink
Separate shell and sub-shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Jan 13, 2025
1 parent 4525da7 commit 53a20b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PyMca5/PyMcaPhysics/xrf/Elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ def _updateElementDict(symbol, dict, energy=None, minenergy=MINENERGY, minrate=0
if 'rays' in dict:
for rays in dict['rays']:
for transition in dict[rays]:
#print "transition deleted = ",transition
#print("transition deleted = ",transition)
del dict[transition]
#print "rays deleted = ",rays
del dict[rays]
Expand Down
6 changes: 5 additions & 1 deletion src/PyMca5/PyMcaPhysics/xrf/MShell.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-2016 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 @@ -289,6 +289,10 @@ def getweights(ele,excitedshells=None):
ElementM3ShellTransitions[2:] + \
ElementM4ShellTransitions[2:] + \
ElementM5ShellTransitions[2:]

for i in range(len(ElementMShellTransitions)):
ElementMShellTransitions[i]+="*"

nele = len(ElementM1ShellRates)
elements = range(1,nele+1)
weights = []
Expand Down

0 comments on commit 53a20b4

Please sign in to comment.