Skip to content

Commit cfb863e

Browse files
committed
Fix Python 3.9 limited support of the walrus operator
1 parent fe4ddd9 commit cfb863e

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
@@ -339,7 +339,7 @@ def logtable(self) -> pd.DataFrame:
339339

340340
# Create new DataFrame with 'onset', 'duration', and 'event_type'
341341
for event in events:
342-
onset = df[started := f"{event}.started"] # Get the onset times
342+
onset = df[(started := f"{event}.started")] # Get the onset times
343343
if (stopped := f"{event}.stopped") in df.columns:
344344
duration = df[stopped] - df[started]
345345
else:

0 commit comments

Comments
 (0)