bidsaid.events.PresentationBlockExtractor.extract_onsets
- PresentationBlockExtractor.extract_onsets(scanner_start_time=None)[source]
Extract the onset times for each event.
Onset is calculated as the difference between the event time and the scanner start time (e.g. first pulse).
Parameters
- scanner_start_time
float,int, orNone, default=None The start time for the scanner.
Important
Scanner start time will be detected during class initialization, unless the
self.scanner_event_codeandself.scanner_trigger_codedoes not return an index.
Returns
- list[float]
A list of onset times for each block.
- scanner_start_time