final peak version with bool

This commit is contained in:
wendtalexander
2023-01-18 09:38:23 +01:00
parent 7034e9421b
commit 844f65e24e
2 changed files with 12 additions and 8 deletions

View File

@@ -82,6 +82,7 @@ def group_timestamps_v2(sublists: List[List[Union[int, float]]], n: int, time_th
current_group = []
# Create a set to store the timestamps that occur in at least n of the sublists
common_timestamps = set.intersection(*[set(lst) for lst in sublists])
embed()
# Iterate through the timestamps
for i in range(len(common_timestamps)):
# If the current timestamp is less than 50 milliseconds away from the previous timestamp