BioSIMI-Python/modules/Subsystem.py
def createNewModel(self, modelId, timeUnits, extentUnits, substanceUnits):
        '''
        Creates a new Model object in the SBMLDocument of the Subsystem 
        with the given attributes
        '''
        model = self.getSubsystemDoc().createModel()
        if model == None:
            print('Unable to create Model object.')
            sys.exit(1)
        status = model.setId(modelId)
        if status != LIBSBML_OPERATION_SUCCESS:
            print('Unable to set identifier on the Model object')
            sys.exit(1)
        check(model.setTimeUnits(timeUnits), 'set model-wide time units')
        check(model.setExtentUnits(extentUnits), 'set model units of extent')
        check(model.setSubstanceUnits(substanceUnits),
              'set model substance units')
        return model

        Creates a new Model object in the SBMLDocument of the Subsystem 
        with the given attributes
        
Creates a new Model object in the SBMLDocument of the Subsystem
with the given attributes
Creates a new Model object in the SBMLDocument of the Subsystem with the given attributes
def createNewModel(self, modelId, timeUnits, extentUnits, substanceUnits):
        model = self.getSubsystemDoc().createModel()
        if model == None:
            print('Unable to create Model object.')
            sys.exit(1)
        status = model.setId(modelId)
        if status != LIBSBML_OPERATION_SUCCESS:
            print('Unable to set identifier on the Model object')
            sys.exit(1)
        check(model.setTimeUnits(timeUnits), 'set model-wide time units')
        check(model.setExtentUnits(extentUnits), 'set model units of extent')
        check(model.setSubstanceUnits(substanceUnits),
              'set model substance units')
        return model
def createNewModel ( self , modelId , timeUnits , extentUnits , substanceUnits ) : model = self . getSubsystemDoc ( ) . createModel ( ) if model == None : print ( 'Unable to create Model object.' ) sys . exit ( 1 ) status = model . setId ( modelId ) if status != LIBSBML_OPERATION_SUCCESS : print ( 'Unable to set identifier on the Model object' ) sys . exit ( 1 ) check ( model . setTimeUnits ( timeUnits ) , 'set model-wide time units' ) check ( model . setExtentUnits ( extentUnits ) , 'set model units of extent' ) check ( model . setSubstanceUnits ( substanceUnits ) , 'set model substance units' ) return model
Creates a new Model object in the SBMLDocument of the Subsystem
with the given attributes
Creates a new Model object in the SBMLDocument of the Subsystem with the given attributes
'''
        Creates a new Model object in the SBMLDocument of the Subsystem 
        with the given attributes
        '''
self
modelId
timeUnits
extentUnits
substanceUnits