def next(self):
        if self.infinite_set:
            _log.debug("%s INFINITE" % self.__str__())
            if self.infinite_sent:
                _log.debug("%s INFINITE STOP" % self.__str__())
                raise StopIteration
            else:
                _log.debug("%s INFINITE SEND" % self.__str__())
                self.infinite_sent = True
                # FIXME Need to trig?
                #self.trig()
                return InfiniteElement
        return self.op()
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/dynops.py/DynOps.next/original