Use correct block_index to get event num segment
@@ -324,7 +324,7 @@ class NeoBaseEventExtractor(_NeoBaseExtractor, BaseEvent):
BaseEvent.__init__(self, channel_ids, structured_dtype=_neo_event_dtype)
- nseg = self.neo_reader.segment_count(block_index=0)
+ nseg = self.neo_reader.segment_count(block_index=block_index)
for segment_index in range(nseg):
if self.handle_event_frame_directly:
t_start = None
