bidsaid.events.EPrimeEventExtractor.extract_durations

EPrimeEventExtractor.extract_durations(offset_column_name)[source]

Extract the duration for each event.

Duration is computed as the difference between the trial onset time and the trial offset time.

Parameters

offset_column_namestr

The name of the column containing the offset time of trial.

Returns

list[float]

A list of durations for each event.