Skip to content
Snippets Groups Projects
Commit 3e746d74 authored by John Chapman's avatar John Chapman Committed by John Chapman
Browse files

OutputStreamConfig.py: Fix syntax in addToMetaData function

parent ef4a9c17
No related branches found
No related tags found
2 merge requests!714242024-05-16: merge of 24.0 into main,!71084Migrating EVNTMerge_tf.py to ComponentAccumulator
......@@ -160,7 +160,8 @@ def addToMetaData(flags, streamName, itemOrList, AcceptAlgs=[], HelperTools=[],
Returns CA to be merged
"""
if not getattr(flags.Output, f"doWrite{streamName}"):
flagName = f"Output.doWrite{streamName}"
if not flags.hasFlag(flagName):
return ComponentAccumulator()
items = [itemOrList] if isinstance(itemOrList, str) else itemOrList
return OutputStreamCfg(flags, streamName, MetadataItemList=items,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment