BioSIMI-Python/modules/Subsystem.py
def renameSName(self, old_name, new_name):
        '''
        Search the SBMLDocument for the oldName and rename all such 
        components by the newName
        '''
        model = self.getSubsystemDoc().getModel()
        check(model,'retreiving model from document in renameSName')
        mod_obj = SimpleModel(model)
        species = mod_obj.getSpeciesByName(old_name)
        if species == None:
            print('No species named' + old_name + 'found.')
            return
        if type(species) is list:
            for sp in species:
                check(sp.setName(new_name), 'setting the new name from rename to the list of species')
        else:
            check(species.setName(new_name), 'setting new name from rename function call')

        Search the SBMLDocument for the oldName and rename all such 
        components by the newName
        
Search the SBMLDocument for the oldName and rename all such
components by the newName
Search the SBMLDocument for the oldName and rename all such components by the newName
def renameSName(self, old_name, new_name):
        model = self.getSubsystemDoc().getModel()
        check(model,'retreiving model from document in renameSName')
        mod_obj = SimpleModel(model)
        species = mod_obj.getSpeciesByName(old_name)
        if species == None:
            print('No species named' + old_name + 'found.')
            return
        if type(species) is list:
            for sp in species:
                check(sp.setName(new_name), 'setting the new name from rename to the list of species')
        else:
            check(species.setName(new_name), 'setting new name from rename function call')
def renameSName ( self , old_name , new_name ) : model = self . getSubsystemDoc ( ) . getModel ( ) check ( model , 'retreiving model from document in renameSName' ) mod_obj = SimpleModel ( model ) species = mod_obj . getSpeciesByName ( old_name ) if species == None : print ( 'No species named' + old_name + 'found.' ) return if type ( species ) is list : for sp in species : check ( sp . setName ( new_name ) , 'setting the new name from rename to the list of species' ) else : check ( species . setName ( new_name ) , 'setting new name from rename function call' )
Search the SBMLDocument for the oldName and rename all such
components by the newName
Search the SBMLDocument for the oldName and rename all such components by the newName
'''
        Search the SBMLDocument for the oldName and rename all such 
        components by the newName
        '''
self
old_name
new_name