Skip to content

Commit f01e17b

Browse files
authored
multiple scenario copy bug (#1219)
1 parent 85e7061 commit f01e17b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

activity_browser/bwutils/superstructure/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,11 @@ def check_duplicates(data: Optional[Union[pd.DataFrame, list]],
502502
# and we are always checking the last file
503503
# So only comparisons with the last file are required
504504
count = 1
505-
df = data[-count]
505+
df = data[-count].copy()
506506
duplicated = {}
507507
while count < len(data):
508508
count += 1
509-
popped = data[-count]
509+
popped = data[-count].copy()
510510
duplicates = SuperstructureManager._check_duplicates(df, popped, count)
511511
if not duplicates.empty:
512512
duplicated[count] = duplicates

0 commit comments

Comments
 (0)