From be4ef85d83cacfb0d04ff9d2283bbca55cc19cdb Mon Sep 17 00:00:00 2001 From: Chris Keckler Date: Mon, 9 Oct 2023 19:54:53 +0100 Subject: [PATCH] Only print debug about upper linked component if the upper linked block isn't the DUMMY --- armi/reactor/converters/axialExpansionChanger.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/armi/reactor/converters/axialExpansionChanger.py b/armi/reactor/converters/axialExpansionChanger.py index 45a751100..e66d5537f 100644 --- a/armi/reactor/converters/axialExpansionChanger.py +++ b/armi/reactor/converters/axialExpansionChanger.py @@ -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,