def __add__(self, other): shift = len(self) atoms = AseAtoms.__add__(self, other) if isinstance(other, Atoms): atoms.transfer(other, shift) return atoms