def copy(self, add_to_container=True): with warnings.catch_warnings(): # We warn when copying since we can't change add_to_container. # However, we deal with it here, so we ignore the warning. warnings.simplefilter("ignore", category=NotAddedToNetworkWarning) c = std_copy(self) if add_to_container: nengo.Network.add(c) return c
def copy(self): return std_copy(self)