def _get_streams_index_by_time(self, local_time): if self.is_stream: cidx = numpy.searchsorted(self._times, local_time, 'right') - 1 return cidx