Skip to content

Commit 1fc6533

Browse files
committed
more doctest fix
1 parent 1539b1f commit 1fc6533

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mne_bids/read.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,14 +541,16 @@ def _handle_info_reading(sidecar_fname, raw):
541541
return raw
542542

543543

544-
def events_file_to_annotation_kwargs(events_fname: str | Path) -> dict:
544+
@verbose
545+
def events_file_to_annotation_kwargs(events_fname: str | Path, verbose=None) -> dict:
545546
r"""
546547
Read the ``events.tsv`` file and extract onset, duration, and description.
547548
548549
Parameters
549550
----------
550551
events_fname : str
551552
The file path to the ``events.tsv`` file.
553+
%(verbose)s
552554
553555
Returns
554556
-------
@@ -603,7 +605,7 @@ def events_file_to_annotation_kwargs(events_fname: str | Path) -> dict:
603605
>>> df.to_csv(events_file, sep='\t', index=False)
604606
>>>
605607
>>> # Read the events file using the function
606-
>>> events_dict = events_file_to_annotation_kwargs(events_file)
608+
>>> events_dict = events_file_to_annotation_kwargs(events_file, verbose=False)
607609
Reading events from /tmp/events.tsv.
608610
>>> events_dict
609611
{'onset': array([0.1, 0.2, 0.3]),

0 commit comments

Comments
 (0)