Skip to content

Commit 37b8bc7

Browse files
committed
Ignore 'sample' column
1 parent f46f0a5 commit 37b8bc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mne_bids/read.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ def events_file_to_annotation_kwargs(events_fname: str | Path) -> dict:
575575
... 'trial_type': ['event1', 'event2', 'event1'],
576576
... 'value': [1, 2, 1],
577577
... 'sample': [10, 20, 30]
578+
'foo': ['a', 'b', 'c'],
578579
... }
579580
>>> df = pd.DataFrame(data)
580581
>>>
@@ -590,7 +591,7 @@ def events_file_to_annotation_kwargs(events_fname: str | Path) -> dict:
590591
'duration': array([0.1, 0.1, 0.1]),
591592
'description': array(['event1', 'event2', 'event1'], dtype='<U6'),
592593
'event_id': {'event1': 1, 'event2': 2},
593-
'extras': [{'sample': 10}, {'sample': 20}, {'sample': 30}]}
594+
'extras': [{'foo': 'a'}, {'foo': 'b'}, {'foo': 'c'}]}
594595
595596
"""
596597
logger.info(f"Reading events from {events_fname}.")
@@ -678,6 +679,7 @@ def events_file_to_annotation_kwargs(events_fname: str | Path) -> dict:
678679
"value",
679680
"trial_type",
680681
"stim_type",
682+
"sample",
681683
}
682684
)
683685
if extra_columns:

0 commit comments

Comments
 (0)