mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
removed parsing of blanks in endf
This commit is contained in:
parent
35baf510ea
commit
76475730c7
1 changed files with 1 additions and 7 deletions
|
|
@ -68,13 +68,7 @@ def float_endf(s):
|
|||
The number
|
||||
|
||||
"""
|
||||
try:
|
||||
return float(_ENDF_FLOAT_RE.sub(r'\1e\2', s))
|
||||
except:
|
||||
if _ENDF_FLOAT_RE.sub(r'\1e\2', s).isspace():
|
||||
return 0
|
||||
else:
|
||||
raise TypeError('Expected float value or blank entry')
|
||||
return float(_ENDF_FLOAT_RE.sub(r'\1e\2', s))
|
||||
|
||||
|
||||
def int_endf(s):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue