mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Small change to endf parser
This commit is contained in:
parent
84ef96cf8a
commit
e88f8cd364
1 changed files with 2 additions and 2 deletions
|
|
@ -69,9 +69,9 @@ def float_endf(s):
|
|||
|
||||
"""
|
||||
try:
|
||||
return float(ENDF_FLOAT_RE.sub(r'\1e\2', s))
|
||||
return float(_ENDF_FLOAT_RE.sub(r'\1e\2', s))
|
||||
except:
|
||||
if ENDF_FLOAT_RE.sub(r'\1e\2', s).isspace():
|
||||
if _ENDF_FLOAT_RE.sub(r'\1e\2', s).isspace():
|
||||
return 0
|
||||
else:
|
||||
raise TypeError('Expected float value or blank entry')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue