def generate_sequence(self, frm, to): """ Creates a new data set that contains the given sequence :param frm: The start number for the sequence. :param to: The end number for the sequence. :return: A DataSet representing the given sequence of numbers. """ child = OperationInfo() child_set = DataSet(self, child) child.identifier = _Identifier.SOURCE_SEQ child.frm = frm child.to = to self._sources.append(child) return child_set