Skip to content

Commit e8103e7

Browse files
authored
fix duplicated protocols error when same scan type returned (#856)
1 parent 115283e commit e8103e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/lib/imaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ def look_for_matching_protocols(self, protocols_list, scan_param):
669669
elif self.is_scan_protocol_matching_db_protocol(protocol, scan_param):
670670
matching_protocols_list.append(protocol['Scan_type'])
671671

672-
return matching_protocols_list
672+
return list(dict.fromkeys(matching_protocols_list))
673673

674674
def is_scan_protocol_matching_db_protocol(self, db_prot, scan_param):
675675
"""

0 commit comments

Comments
 (0)