2525 BaseRawIO ,
2626 _signal_channel_dtype ,
2727 _signal_stream_dtype ,
28+ _signal_buffer_dtype ,
2829 _spike_channel_dtype ,
2930 _event_channel_dtype ,
3031)
@@ -199,6 +200,7 @@ def _parse_header(self):
199200 params ["set" ]["sampling_rate" ] = int (set_dict ["rawRate" ])
200201
201202 # SCAN BIN FILE
203+ signal_buffers = []
202204 signal_streams = []
203205 signal_channels = []
204206 if self .bin_file :
@@ -289,6 +291,7 @@ def _parse_header(self):
289291 self .header = {}
290292 self .header ["nb_block" ] = 1
291293 self .header ["nb_segment" ] = [1 ]
294+ self .header ["signal_buffers" ] = np .array (signal_buffers , dtype = _signal_buffer_dtype )
292295 self .header ["signal_streams" ] = np .array (signal_streams , dtype = _signal_stream_dtype )
293296 self .header ["signal_channels" ] = np .array (signal_channels , dtype = _signal_channel_dtype )
294297 self .header ["spike_channels" ] = np .array (spike_channels , dtype = _spike_channel_dtype )
@@ -315,7 +318,7 @@ def _parse_header(self):
315318
316319 def _get_signal_streams_header (self ):
317320 # create signals stream information (we always expect a single stream)
318- return np .array ([("stream 0" , "0" )], dtype = _signal_stream_dtype )
321+ return np .array ([("stream 0" , "0" , "" )], dtype = _signal_stream_dtype )
319322
320323 def _segment_t_start (self , block_index , seg_index ):
321324 return 0.0
@@ -638,10 +641,11 @@ def _get_signal_chan_header(self):
638641 chan_id = str (cntr )
639642 gain = gain_list [cntr ]
640643 stream_id = "0"
644+ buffer_id = ""
641645 # the sampling rate information is stored in the set header
642646 # and not in the bin file
643647 sr = self .file_parameters ["set" ]["sampling_rate" ]
644- sig_channels .append ((ch_name , chan_id , sr , dtype , units , gain , offset , stream_id ))
648+ sig_channels .append ((ch_name , chan_id , sr , dtype , units , gain , offset , stream_id , buffer_id ))
645649
646650 return np .array (sig_channels , dtype = _signal_channel_dtype )
647651
0 commit comments