mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #1994 from yardasol/omc-ace-hdf5-bugfix
Fix overwritten variable in `ace.py::get_libraries_from_xsdata`
This commit is contained in:
commit
4f7a31e48d
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue