Skip to content
Snippets Groups Projects
Commit 84c7fed7 authored by Patrick Koppenburg's avatar Patrick Koppenburg :leaves:
Browse files

Merge branch 'AM_decision' into 'master'

Update functorcollection SelectionInfo to add suffix Decision if necessary.

See merge request !892
parents 21ebf001 90b1bf90
No related branches found
No related tags found
1 merge request!892Update functorcollection SelectionInfo to add suffix Decision if necessary.
Pipeline #4053151 passed
......@@ -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),
......
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