Skip to content
Snippets Groups Projects

ComponentAccumulator: Allow printing only sequences

Merged Tadej Novak requested to merge tadej/athena:ca-printseq into 24.0
All threads resolved!
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -220,10 +220,9 @@ class ComponentAccumulator(AccumulatorCachable):
# in the list with a trailing `-', then only the name of the component
# will be printed, not its properties.
def printConfig(self, withDetails=False, summariseProps=False,
onlyComponents = [], printDefaults=False, printComponentsOnly=False, prefix=None):
onlyComponents = [], printDefaults=False, printComponentsOnly=False, printSequencesOnly=False, prefix=None):
msg = logging.getLogger(prefix) if prefix else self._msg
msg.info( "Event Inputs" )
msg.info( "Event Algorithm Sequences" )
def printSeqAndAlgs(seq, nestLevel = 0,
@@ -256,6 +255,9 @@ class ComponentAccumulator(AccumulatorCachable):
msg.info( "Top sequence %d", n )
printSeqAndAlgs(s, onlyComponents = onlyComponents)
+1
if printSequencesOnly:
return
self.printCondAlgs (summariseProps = summariseProps,
onlyComponents = onlyComponents)
msg.info( "Services" )
Loading