@@ -271,29 +271,27 @@ def _parse_header(self):
271271
272272
273273 def _segment_t_start (self , block_index , seg_index ):
274- # this must return an float scale in second
275- # this t_start will be shared by all object in the segment except AnalogSignal
274+ # this must return a float values in seconds
276275 return self .pl2reader .pl2_file_info .m_StartRecordingTime / self .pl2reader .pl2_file_info .m_TimestampFrequency
277276
278277 def _segment_t_stop (self , block_index , seg_index ):
279- # this must return an float scale in second
278+ # this must return a float value in seconds
280279 end_time = self .pl2reader .pl2_file_info .m_StartRecordingTime + self .pl2reader .pl2_file_info .m_DurationOfRecording
281280 return end_time / self .pl2reader .pl2_file_info .m_TimestampFrequency
282281
283282
284283 def _get_signal_size (self , block_index , seg_index , stream_index ):
285- # this must return an int = the number of sample
284+ # this must return an integer value ( the number of samples)
286285
287286 stream_id = self .header ['signal_streams' ][stream_index ]['id' ]
288287 stream_characteristic = list (self .signal_stream_characteristics .values ())[stream_index ]
289288 assert stream_id == stream_characteristic .id
290289 return stream_characteristic .n_samples
291290
292291 def _get_signal_t_start (self , block_index , seg_index , stream_index ):
293- # This give the t_start of signals.
294- # this must return an float scale in second
292+ # This returns the t_start of signals as a float value in seconds
295293
296- # TODO: Does the fragment_timestamp[0] need to be added here as for digital signals?
294+ # TODO: Does the fragment_timestamp[0] need to be added here for digital signals?
297295 return self ._segment_t_start (block_index , seg_index )
298296
299297 def _get_analogsignal_chunk (self , block_index , seg_index , i_start , i_stop ,
0 commit comments