From 8e5dad821072fbb9e35b8ef0a60c51e772981b93 Mon Sep 17 00:00:00 2001 From: yardasol Date: Wed, 9 Mar 2022 09:45:14 -0600 Subject: [PATCH] fix overwritten variable in ace.py::get_libraries_from_xsdata --- openmc/data/ace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/data/ace.py b/openmc/data/ace.py index 97be6f6275..06c581b426 100644 --- a/openmc/data/ace.py +++ b/openmc/data/ace.py @@ -573,11 +573,11 @@ def get_libraries_from_xsdata(path): List of paths to ACE libraries """ xsdata = Path(path) - with open(xsdata, 'r') as xsdata: + with open(xsdata, 'r') as xsdata_file: # As in get_libraries_from_xsdir, we use a dict for O(1) membership # check while retaining insertion order libraries = OrderedDict() - for line in xsdata: + for line in xsdata_file: words = line.split() if len(words) >= 9: lib = (xsdata.parent / words[8]).resolve()