Skip to content

Commit 34f2fcc

Browse files
authored
[ENH] Allow microxs reader to handle files w/o nfy data (#468)
Closes #464 Originally written by Andrea Alfonsi in #465
1 parent f6ccb6b commit 34f2fcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

serpentTools/parsers/microxs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ def _precheck(self):
182182
"Parser: {}\nFile: {}".format(self,
183183
self.filePath))
184184
for tline in fid:
185-
if 'NFY' in tline:
185+
if 'NFY' in tline or 'XS_' in tline:
186186
return
187-
raise SerpentToolsException("Fission yields values were not "
188-
"found in {}".format(self.filePath))
187+
raise SerpentToolsException("Fission yields and/or XS values were "
188+
"not found in {}".format(self.filePath))
189189

190190
def _postcheck(self):
191191
"""ensure the parser grabbed expected results."""

0 commit comments

Comments
 (0)