Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extra_data/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def add(self, name):
if len(diffs_at) != 1 or ((diff_at := diffs_at[0]) % 2 == 0):
return False # >1 part changed, or separator part changed

if len(grp) > 2 and (grp[-1][diff_at] == grp[0][diff_at]):
if len(grp) >= 2 and (grp[-1][diff_at] == grp[0][diff_at]):
return False # different part changing from current group

self.entries.append(split)
Expand Down
6 changes: 6 additions & 0 deletions extra_data/tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ def test_group_ok(names, exp):
"SA1_XTD2_XGM/DOOCS/MAIN:output",
"SPB_XTD9_XGM/DOOCS/MAIN:output",
],
[
# One part changing each time, but different parts
'SQS_ILH_LAS/PROC/BS_CAM_800_OU1',
'SQS_ILH_LAS/PROC/BS_CAM_800_OU2',
'SQS_ILH_LAS/PROC/BS_CAM_TT_OU2',
],
])
def test_group_fail(names):
grp = SourceGroup()
Expand Down
Loading