mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Improve file checking and reporting in openmc-make-depletion-chain
This commit is contained in:
parent
37c871cbad
commit
68b3fd6ec8
1 changed files with 2 additions and 3 deletions
|
|
@ -33,9 +33,8 @@ def main():
|
|||
nfy_files = tuple((endf_dir / "nfy").glob("*endf"))
|
||||
|
||||
# check files exist
|
||||
for flist, ftype in zip(
|
||||
(decay_files, neutron_files, nfy_files),
|
||||
("decay", "neutron", "nfy")):
|
||||
for flist, ftype in [(decay_files, "decay"), (neutron_files, "neutron"),
|
||||
(nfy_files, "neutron fission product yield")]:
|
||||
if not flist:
|
||||
raise IOError("No {} endf files found in {}".format(ftype, endf_dir))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue