Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Dec 5, 2023
1 parent 839bf02 commit a10517f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions python/xraydb/xray.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,13 @@ def core_width(element, edge=None):
edge (None or str): edge to consider
Returns:
core width or list of core widths
a dict of ``{edge: core_hole_width}`` if the edge is not specified
or a float with the core hole width for a specified edge.
Notes:
1. if edge is None, values are return for all edges
1. if edge is None, a dict of core hole widths for all edges is returned
2. Data from Krause and Oliver (1979) and Keski-Rahkonen and Krause (1974)
3. Values are in eV
"""
xdb = get_xraydb()
return xdb.corehole_width(element, edge=edge)
Expand Down
4 changes: 2 additions & 2 deletions python/xraydb/xraydb.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ def corehole_width(self, element, edge=None, use_keski=False):
use_keski (bool) : force use of KeskiRahkonen and Krause table for all data.
Returns:
either a dict of {edge: corehole_width} if the edge is not specified
or a float with the corehole width if the edge is specied
a dict of ``{edge: core_hole_width}`` if the edge is not specified
or a float with the core hole width for a specified edge.
Notes:
Uses Krause and Oliver where data is available (K, L lines Z > 10)
Expand Down

0 comments on commit a10517f

Please sign in to comment.