mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Use utf-8 encoding when reading dose coefficient files (thanks Fabricio Gatti)
This commit is contained in:
parent
fe230168fb
commit
e0d82e4878
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def _load_dose_icrp116():
|
|||
"""Load effective dose tables from text files"""
|
||||
for particle, filename in _FILES:
|
||||
path = Path(__file__).parent / filename
|
||||
data = np.loadtxt(path, skiprows=3)
|
||||
data = np.loadtxt(path, skiprows=3, encoding='utf-8')
|
||||
data[:, 0] *= 1e6 # Change energies to eV
|
||||
_DOSE_ICRP116[particle] = data
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue