def copy(self, keepBuffers=False): if not keepBuffers: self._resetBuffers() cp = Evolvable.copy(self) if self.paramdim > 0: cp._setParameters(self.params.copy()) return cp
def copy(self): """ copy everything, except the pcontainer """ # CHECKME: is this correct, or might it be misleading? tmp = self.pcontainer self.pcontainer = None cp = Evolvable.copy(self) cp.pcontainer = tmp self.pcontainer = tmp return cp