File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def _parse_header(self):
166166 # will be in stream_id = 0. In the future this will be split into sub_streams based on
167167 # type but for now it will be the end-users responsability for this.
168168 stream_id = "0" # hard-coded see note above
169+ buffer_id = "0"
169170 for channel_index , channel_name in enumerate (channel_info ["chan_name" ]):
170171 channel_id = channel_info ["ntv_chan_name" ][channel_index ]
171172 # 'ai0' indicates analog data which is stored as microvolts
@@ -189,6 +190,7 @@ def _parse_header(self):
189190 1 , # no gain
190191 0 , # no offset
191192 stream_id ,
193+ buffer_id
192194 )
193195 )
194196
@@ -197,6 +199,9 @@ def _parse_header(self):
197199 stream_ids = np .unique (signal_channels ["stream_id" ])
198200 signal_streams = np .zeros (stream_ids .size , dtype = _signal_stream_dtype )
199201 signal_streams ["id" ] = [str (stream_id ) for stream_id in stream_ids ]
202+ # One unique buffer
203+ signal_streams ["buffer_id" ] = "0"
204+
200205 for stream_index , stream_id in enumerate (stream_ids ):
201206 name = stream_id_to_stream_name .get (int (stream_id ), "" )
202207 signal_streams ["name" ][stream_index ] = name
You can’t perform that action at this time.
0 commit comments