BioSIMI-Python/modules/Subsystem.py
def suffixAllElementIds(self, name):
        '''
        All elements identifiers in the
        SBMLDocument of the Subsystem are suffixed with name
        '''
        document = self.getSubsystemDoc()
        check(document,'retreiving document from subsystem in suffixAllElements')
        allids = self.getAllIds()
        for oldid in allids:
            if document.getElementBySId(oldid) != None:
                self.renameSId(oldid, oldid + '_' + name)

        ## Use if want to rename all names too
        # elements = document.getListOfAllElements()
        # for element in elements:
        #     if element.isSetName():
        #         oldname = element.getName()
        #         newname = oldname + '_' + name
        #         element.setName(newname)

        return document

        All elements identifiers in the
        SBMLDocument of the Subsystem are suffixed with name
        
All elements identifiers in the
SBMLDocument of the Subsystem are suffixed with name
All elements identifiers in the SBMLDocument of the Subsystem are suffixed with name
def suffixAllElementIds(self, name):
        document = self.getSubsystemDoc()
        check(document,'retreiving document from subsystem in suffixAllElements')
        allids = self.getAllIds()
        for oldid in allids:
            if document.getElementBySId(oldid) != None:
                self.renameSId(oldid, oldid + '_' + name)
        return document
def suffixAllElementIds ( self , name ) : document = self . getSubsystemDoc ( ) check ( document , 'retreiving document from subsystem in suffixAllElements' ) allids = self . getAllIds ( ) for oldid in allids : if document . getElementBySId ( oldid ) != None : self . renameSId ( oldid , oldid + '_' + name ) return document
All elements identifiers in the
SBMLDocument of the Subsystem are suffixed with name
All elements identifiers in the SBMLDocument of the Subsystem are suffixed with name
'''
        All elements identifiers in the
        SBMLDocument of the Subsystem are suffixed with name
        ''' ## Use if want to rename all names too # elements = document.getListOfAllElements() # for element in elements: #     if element.isSetName(): #         oldname = element.getName() #         newname = oldname + '_' + name #         element.setName(newname)
self
name