bidsaid.events.PresentationBlockExtractor.extract_durations

PresentationBlockExtractor.extract_durations()[source]

Extract the duration for each block.

Duration is computed as the difference between the onset time of the current block and the onset time of the next block start of the block (either a rest block or some task block).

Returns

list[float]

A list of durations for each block.