fix merge_status in HasConvergence

This commit is contained in:
zolliker 2023-06-05 13:03:38 +02:00
parent a6a3f80e30
commit ee31f8fb45

View File

@ -405,4 +405,6 @@ def merge_status(*args):
texts matching maximal code are joined with ', ' texts matching maximal code are joined with ', '
""" """
maxcode = max(a[0] for a in args) maxcode = max(a[0] for a in args)
return maxcode, ', '.join([a[1] for a in args if a[0] == maxcode and a[1]]) merged = [a[1] for a in args if a[0] == maxcode and a[1]]
merged = {m: True for mm in merged for m in mm.split(', ')}
return maxcode, ', '.join(merged)