From 43d3628b6925bd5a9bf3630fe8b290c9eb517b58 Mon Sep 17 00:00:00 2001 From: agnelson Date: Mon, 22 Nov 2021 12:56:16 -0600 Subject: [PATCH] Fixed xsdir continuation line parsing --- openmc/data/ace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/data/ace.py b/openmc/data/ace.py index e4c0c4ed05..97be6f6275 100644 --- a/openmc/data/ace.py +++ b/openmc/data/ace.py @@ -540,7 +540,7 @@ def get_libraries_from_xsdir(path): continue_lines = [i for i, line in enumerate(lines) if line.strip().endswith('+')] for i in reversed(continue_lines): - lines[i] += lines[i].strip()[:-1] + lines.pop(i + 1) + lines[i] = lines[i].strip()[:-1] + lines.pop(i + 1) # Create list of ACE libraries -- we use an ordered dictionary while # building to get O(1) membership checks while retaining insertion order