bidsaid.events.EPrimeBlockExtractor.extract_onsets
- EPrimeBlockExtractor.extract_onsets(scanner_start_time=None)[source]
Extract the onset times for each block.
Onset is calculated as the difference between the event time and the scanner start time.
Parameters
- scanner_start_time
float,int, orNone, default=None The scanner start time. Used to compute onset relative to the start of the scan.
Note
Does not need to be given if
trigger_column_namewas provided.
Returns
- list[float]
A list of onset times for each block.
- scanner_start_time