From 68b3fd6ec8299cc903a3c4ce347a45175881fe32 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 19 Aug 2019 10:15:25 -0500 Subject: [PATCH] Improve file checking and reporting in openmc-make-depletion-chain --- scripts/openmc-make-depletion-chain | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/openmc-make-depletion-chain b/scripts/openmc-make-depletion-chain index 5ad0bc66a1..51092a7224 100755 --- a/scripts/openmc-make-depletion-chain +++ b/scripts/openmc-make-depletion-chain @@ -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))