Skip to content

Commit ae659f6

Browse files
committed
Minor tweak
1 parent c66e045 commit ae659f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bidscoin/plugins/events2bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def add_started(time, started: float):
375375
df_piv = pd.concat([df_piv_, df_misc], axis=1) # Re-initialize df_piv / avoid future warnings below about concatenating empty frames
376376
else:
377377
df_piv = pd.concat([df_piv, pd.concat([df_piv_, df_misc], axis=1)])
378-
df = df_piv.sort_values(by='onset')
378+
df = df_piv.sort_values(by='onset').reset_index(drop=True)
379379

380380
else:
381381
LOGGER.error(f"NOT IMPLEMENTED table: {table}")

0 commit comments

Comments
 (0)