Skip to content

Commit

Permalink
Only print debug about upper linked component if the upper linked blo…
Browse files Browse the repository at this point in the history
…ck isn't the DUMMY
  • Loading branch information
keckler committed Oct 9, 2023
1 parent e2f83ee commit be4ef85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion armi/reactor/converters/axialExpansionChanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,18 @@ def _getLinkedComponents(self, b, c):
self.linkedComponents[c] = lstLinkedC

if lstLinkedC[0] is None and self.linkedBlocks[b][0] is not None:
# only print debug if there is a linked block below in the first place
runLog.debug(
f"Assembly {self.a}, Block {b}, Component {c} has nothing linked below it!",
single=True,
)
if lstLinkedC[1] is None and self.linkedBlocks[b][1] is not None:
if (
lstLinkedC[1] is None
and self.linkedBlocks[b][1] is not None
and not self.linkedBlocks[b][1].hasFlags(Flags.DUMMY)
):
# only print debug is there is a linked block above in the first place,
# and if that linked block is not the DUMMY block
runLog.debug(
f"Assembly {self.a}, Block {b}, Component {c} has nothing linked above it!",
single=True,
Expand Down

0 comments on commit be4ef85

Please sign in to comment.