def shift(self, items):
        """Shift all buffers up or down a defined number of items on offset axis.
        Negative values indicate backward shift."""
        if items == 0:
            return
        self.offset += items
        for buffername, _  in self.bufferlist:
            buf = getattr(self, buffername)
            assert abs(items) <= len(buf), "Cannot shift further than length of buffer."
            fill = zeros((abs(items), len(buf[0])))
            if 0 < items:
                buf[:] = append(buf[-items:], fill, 0)
            else:
                buf[:] = append(fill ,buf[0:-items] , 0)
dataset/ETHPy150Open pybrain/pybrain/pybrain/structure/modules/module.py/Module.shift/swapped operands of `<`