diff --git a/Phys/FunTuple/python/FunTuple/functorcollections.py b/Phys/FunTuple/python/FunTuple/functorcollections.py index e5e1a603d8be0e27b1ddac85d85ddf18a381d7db..1eb2fb73088d0313510a9fccf158044652c4afee 100644 --- a/Phys/FunTuple/python/FunTuple/functorcollections.py +++ b/Phys/FunTuple/python/FunTuple/functorcollections.py @@ -112,8 +112,9 @@ def SelectionInfo(sel_type, dec_report, line_names): ... ) """ - for line_name in line_names: - assert line_name.endswith("Decision"), f"The specified decision {line_name} requires a suffix \"Decision\" i.e. {line_name}Decision. Please add it!" + #check that the code ends with decision + add_suff_to_elem = lambda s: s+'Decision' if not s.endswith('Decision') else s + line_names = list(map(add_suff_to_elem, line_names)) trigger_info = { sel_type: F.DECISIONS(Lines=line_names, DecReports=dec_report),