Fix use of ENDF_FLOAT_RE in ace.py

This commit is contained in:
Paul Romano 2019-07-18 16:24:37 -05:00
parent 481361ae79
commit 2616655325

View file

@ -411,7 +411,7 @@ class Library(EqualityMixin):
# after it). If it's too short, then we apply the ENDF float regular
# expression. We don't do this by default because it's expensive!
if xss.size != nxs[1] + 1:
datastr = ENDF_FLOAT_RE.sub(r'\1e\2', datastr)
datastr = ENDF_FLOAT_RE.sub(r'\1e\2\3', datastr)
xss = np.fromstring(datastr, sep=' ')
assert xss.size == nxs[1] + 1