(self, other)
Copy properties from other project
Copy properties from other project
Copy properties from other project
def merge_with(self, other) -> None:
        """Copy properties from other project
        """
        if self.has_been_imported:
            raise ValueError("Can only merge into not yet imported pre projects")
        if self.already_known:
            raise ValueError("Can only merge into unknown pre projects")

        if self.title != other.title:
            self.title = f"{self.title}, {other.title}"

        self.stacks.extend(other.stacks)
        self.ontology.extend(other.ontology)
        self.classification.extend(other.classification)
        self.stackgroups.extend(other.stackgroups)
def merge_with ( self , other ) -> None : if self . has_been_imported : raise ValueError ( "Can only merge into not yet imported pre projects" ) if self . already_known : raise ValueError ( "Can only merge into unknown pre projects" ) if self . title != other . title : self . title = f"{self.title}, {other.title}" self . stacks . extend ( other . stacks ) self . ontology . extend ( other . ontology ) self . classification . extend ( other . classification ) self . stackgroups . extend ( other . stackgroups )