@@ -31,6 +31,11 @@ class OpenEphysBinaryRawIO(BaseRawIO):
3131 Neo OpenEphys
3232 block[n-1] experiment[n] New device start/stop
3333 segment[s-1] recording[s] New recording start/stop
34+
35+ handle several signals stream
36+ handle events special npy data are respresented as array_annotations
37+ do not handle spikes at the moment can be implemented if user demand
38+
3439 """
3540 extensions = []
3641 rawmode = 'one-dir'
@@ -173,12 +178,6 @@ def _parse_header(self):
173178 self ._t_start_segments [block_index ][seg_index ] = global_t_start
174179 self ._t_stop_segments [block_index ][seg_index ] = global_t_stop
175180
176- # handle segment t_start
177- # update t_start/t_stop with events
178- # for block_index in range(nb_block):
179- # for seg_index in range(nb_segment_per_block[block_index]):
180- # pass
181-
182181 # main header
183182 self .header = {}
184183 self .header ['nb_block' ] = nb_block
@@ -267,6 +266,7 @@ def _get_event_timestamps(self, block_index, seg_index, event_channel_index, t_s
267266 durations = None
268267 labels = d ['labels' ]
269268 # TODO make the time slice
269+ # DO NOT MERGE BEFORE THIS!!!!!
270270 return timestamps , durations , labels
271271
272272 def _rescale_event_timestamp (self , event_timestamps , dtype , event_channel_index ):
@@ -361,7 +361,6 @@ def explore_folder(dirname):
361361 # TODO for later : gap checking
362362 signal_stream = d .copy ()
363363 signal_stream ['raw_filename' ] = str (raw_filename )
364- # signal_stream['name'] = raw_filename.parents[0]
365364 signal_stream ['dtype' ] = 'int16'
366365 signal_stream ['timestamp0' ] = timestamp0
367366 signal_stream ['t_start' ] = t_start
0 commit comments