def extract_stimulus_segment(self, bgn_ts, end_ts=None):
    'extract a segment of the stimulus stream based on a start and end time-stamp\n\n        Args:\n            bgn_ts (float): segment start time-stamp\n            end_ts (float, optional): segment end time-stamp. Defaults to None.\n\n        Returns:\n            (np.ndarray): the stimulus events between these time-stamps, or None if timestamps invalid\n        '
    return extract_ringbuffer_segment(self.stimulus_ringbuffer, bgn_ts, end_ts)
extract a segment of the stimulus stream based on a start and end time-stamp

Args:
    bgn_ts (float): segment start time-stamp
    end_ts (float, optional): segment end time-stamp. Defaults to None.

Returns:
    (np.ndarray): the stimulus events between these time-stamps, or None if timestamps invalid
def extract_stimulus_segment(self, bgn_ts, end_ts=None):
    'extract a segment of the stimulus stream based on a start and end time-stamp\n\n        Args:\n            bgn_ts (float): segment start time-stamp\n            end_ts (float, optional): segment end time-stamp. Defaults to None.\n\n        Returns:\n            (np.ndarray): the stimulus events between these time-stamps, or None if timestamps invalid\n        '
    return extract_ringbuffer_segment(self.stimulus_ringbuffer, bgn_ts, end_ts)