def __init__(self, **neo_kwargs): _NeoBaseExtractor.__init__(self, **neo_kwargs) # TODO load feature from neo array_annotations event_channels = self.neo_reader.header['event_channels'] channel_ids = event_channels['id'] BaseEvent.__init__(self, channel_ids, structured_dtype=False) nseg = self.neo_reader.segment_count(block_index=0) for segment_index in range(nseg): if self.handle_event_frame_directly: t_start = None else: t_start = self.neo_reader.get_signal_t_start(0, segment_index) event_segment = NeoEventSegment(self.neo_reader, segment_index, t_start) self.add_event_segment(event_segment)
def __init__(self, channel_ids, structured_dtype): BaseEvent.__init__(self, channel_ids, structured_dtype)