src/pybel/repository.py
def update(self, graph: BELGraph) -> None:
        """Update the BEL graph's metadata."""
        if self.name:
            graph.name = self.name
        if self.version:
            graph.version = self.version
        if self.authors:
            graph.authors = self.authors
        if self.description:
            graph.description = self.description
        if self.contact:
            graph.contact = self.contact
        if self.license:
            graph.licenses = self.license
        if self.copyright:
            graph.copyright = self.copyright
        if self.disclaimer:
            graph.disclaimer = self.disclaimer
Update the BEL graph's metadata.
Update the BEL graph's metadata.
Update the BEL graph ' s metadata .
def update(self, graph: BELGraph) -> None:
        if self.name:
            graph.name = self.name
        if self.version:
            graph.version = self.version
        if self.authors:
            graph.authors = self.authors
        if self.description:
            graph.description = self.description
        if self.contact:
            graph.contact = self.contact
        if self.license:
            graph.licenses = self.license
        if self.copyright:
            graph.copyright = self.copyright
        if self.disclaimer:
            graph.disclaimer = self.disclaimer
def update ( self , graph : BELGraph ) -> None : if self . name : graph . name = self . name if self . version : graph . version = self . version if self . authors : graph . authors = self . authors if self . description : graph . description = self . description if self . contact : graph . contact = self . contact if self . license : graph . licenses = self . license if self . copyright : graph . copyright = self . copyright if self . disclaimer : graph . disclaimer = self . disclaimer
Update the BEL graph's metadata.
Update the BEL graph ' s metadata .
"""Update the BEL graph's metadata."""
self
graph
BELGraph