BioSIMI-Python/modules/Subsystem.py
def simulateSbmlWithBioscrape(self, initialTime, timepoints):
        ''' 
        To simulate SBML model without generating the plot. 
        Returns the data for all species.
        '''
        filename = 'models/temp_simulate.xml'
        writeSBML(self.getSubsystemDoc(), filename) 
        m = bioscrape.types.read_model_from_sbml(filename)
        s = bioscrape.simulator.ModelCSimInterface(m)
        s.py_prep_deterministic_simulation()
        s.py_set_initial_time(initialTime)
        sim = bioscrape.simulator.DeterministicSimulator()
        result = sim.py_simulate(s, timepoints)
        return result.py_get_result(), m
 
        To simulate SBML model without generating the plot. 
        Returns the data for all species.
        
To simulate SBML model without generating the plot.
Returns the data for all species.
To simulate SBML model without generating the plot . Returns the data for all species .
def simulateSbmlWithBioscrape(self, initialTime, timepoints):
        filename = 'models/temp_simulate.xml'
        writeSBML(self.getSubsystemDoc(), filename) 
        m = bioscrape.types.read_model_from_sbml(filename)
        s = bioscrape.simulator.ModelCSimInterface(m)
        s.py_prep_deterministic_simulation()
        s.py_set_initial_time(initialTime)
        sim = bioscrape.simulator.DeterministicSimulator()
        result = sim.py_simulate(s, timepoints)
        return result.py_get_result(), m
def simulateSbmlWithBioscrape ( self , initialTime , timepoints ) : filename = 'models/temp_simulate.xml' writeSBML ( self . getSubsystemDoc ( ) , filename ) m = bioscrape . types . read_model_from_sbml ( filename ) s = bioscrape . simulator . ModelCSimInterface ( m ) s . py_prep_deterministic_simulation ( ) s . py_set_initial_time ( initialTime ) sim = bioscrape . simulator . DeterministicSimulator ( ) result = sim . py_simulate ( s , timepoints ) return result . py_get_result ( ) , m
To simulate SBML model without generating the plot.
To simulate SBML model without generating the plot .
''' 
        To simulate SBML model without generating the plot. 
        Returns the data for all species.
        '''
self
initialTime
timepoints