def get_rollout(self, index):
    '\n        Get an indexed sub-rollout.\n\n        :param index: generic index of sub-rollout, negative values, slices and iterables are allowed\n        :return: selected subset.\n        '
    if (not self.continuous):
        raise pyrado.ValueErr(msg='Sub-rollouts are only supported on continuous data.')
    if isinstance(index, slice):
        (start, end, step) = index.indices(self.rollout_count)
        if (step == 1):
            bounds = self._rollout_bounds
            start_step = bounds[start]
            end_step = bounds[end]
            return self[start_step:end_step]
        index = range(start, end, step)
    if isinstance(index, Iterable):
        return StepSequence.concat([self.get_rollout(i) for i in index], self.data_format)
    index = _index_to_int(index, self.rollout_count)
    bounds = self._rollout_bounds
    start_step = bounds[index]
    end_step = bounds[(index + 1)]
    return self[start_step:end_step]
Get an indexed sub-rollout.

:param index: generic index of sub-rollout, negative values, slices and iterables are allowed
:return: selected subset.
def get_rollout(self, index):
    '\n        Get an indexed sub-rollout.\n\n        :param index: generic index of sub-rollout, negative values, slices and iterables are allowed\n        :return: selected subset.\n        '
    if (not self.continuous):
        raise pyrado.ValueErr(msg='Sub-rollouts are only supported on continuous data.')
    if isinstance(index, slice):
        (start, end, step) = index.indices(self.rollout_count)
        if (step == 1):
            bounds = self._rollout_bounds
            start_step = bounds[start]
            end_step = bounds[end]
            return self[start_step:end_step]
        index = range(start, end, step)
    if isinstance(index, Iterable):
        return StepSequence.concat([self.get_rollout(i) for i in index], self.data_format)
    index = _index_to_int(index, self.rollout_count)
    bounds = self._rollout_bounds
    start_step = bounds[index]
    end_step = bounds[(index + 1)]
    return self[start_step:end_step]