Module xelo2.bids.events
Expand source code
from ..io.tsv import save_tsv
from .utils import make_bids_name
def convert_events(run, dest_path, name):
events_tsv = dest_path / f'{make_bids_name(name)}_events.tsv'
save_tsv(events_tsv, run.events, ['onset', 'duration'])
Functions
def convert_events(run, dest_path, name)
-
Expand source code
def convert_events(run, dest_path, name): events_tsv = dest_path / f'{make_bids_name(name)}_events.tsv' save_tsv(events_tsv, run.events, ['onset', 'duration'])