How to use the tellurium.getTelluriumVersion function in tellurium

To help you get started, we’ve selected a few tellurium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sys-bio / tellurium / tests / test_tellurium.py View on Github external
def test_getTelluriumVersionInfo(self):
        version = te.getTelluriumVersion()
        self.assertTrue(isinstance(version, str))
        self.assertTrue(len(version) > 0)
        self.assertEqual(version, te.__version__)
github sys-bio / tellurium / spyder_mod / spyderlib / scientific_startup.py View on Github external
if __has_roadrunner:
    __imports += "Imported RoadRunner %s" % roadrunner.__version__.split(';')[0]
if __has_libantimony:
    __imports += ", antimony %s" % antimony.__version__
if __has_sbml2matlab:
    __imports += ", sbml2matlab %s" % sbml2matlab.__version__
if __has_teplugins:
    __imports += ", TePlugins %s" % teplugins.__version__
if __has_numpy:
    __imports += ", NumPy %s" % np.__version__
if __has_scipy:
    __imports += ", SciPy %s" % sp.__version__
if __has_matplotlib:
    __imports += ", Matplotlib %s" % mpl.__version__
if __has_tellurium:
    __imports += ', and Tellurium %s as "te"' % te.getTelluriumVersion()

exec_print("")
if __imports:
    exec_print(__imports)
	
#Not imported/ missing
__notimports = []
if not __has_roadrunner:
    __notimports.append("roadrunner")
if not __has_libantimony:
    __notimports.append("antimony")
if not __has_sbml2matlab:
    __notimports.append("sbml2matlab")
if not __has_teplugins:
    __notimports.append("teplugins")
if not __has_numpy:
github sys-bio / tellurium / examples / notebooks-py / tellurium_utility.py View on Github external
# coding: utf-8

# Back to the main [Index](../index.ipynb)

# #### Version information

# In[1]:

#!!! DO NOT CHANGE !!! THIS FILE WAS CREATED AUTOMATICALLY FROM NOTEBOOKS !!! CHANGES WILL BE OVERWRITTEN !!! CHANGE CORRESPONDING NOTEBOOK FILE !!!
from __future__ import print_function
import tellurium as te

# to get the tellurium version use
print(te.getTelluriumVersion())

# to print the full version info use
print('-' * 80)
te.printVersionInfo()
print('-' * 80)


# #### Repeat simulation without notification

# In[2]:

# Load SBML file
r = te.loada("""
model test
    J0: X0 -> X1; k1*X0;
    X0 = 10; X1=0;
github sys-bio / tellurium / tellurium / dev / deprecated / tephrasedml.py View on Github external
"""
        warnings.warn('Use inline_omex instead.', DeprecationWarning)
        readme = """
        # Tellurium {} experiment
        This COMBINE archive stores an tellurium experiment.
        http://tellurium.analogmachine.org/

        ## Run Experiment
        To reproduce the experiment and to create the figures and data run
        ```
        import tellurium as te
        omexPath = '{}'
        te.executeSEDML(omexPath)
        ```
        in tellurium, with `omexPath` the path to this archive file.
        """.format(te.getTelluriumVersion(),
                   os.path.basename(outputPath))
        return readme
github sys-bio / tellurium / tellurium / sedml / tesedml.py View on Github external
# for key in sedmlfilters.filters:
        #      env.filters[key] = getattr(sedmlfilters, key)
        template = env.get_template(python_template)
        env.globals['modelToPython'] = self.modelToPython
        env.globals['dataDescriptionToPython'] = self.dataDescriptionToPython
        env.globals['taskToPython'] = self.taskToPython
        env.globals['dataGeneratorToPython'] = self.dataGeneratorToPython
        env.globals['outputToPython'] = self.outputToPython

        # timestamp
        time = datetime.datetime.now()
        timestamp = time.strftime('%Y-%m-%dT%H:%M:%S')

        # Context
        c = {
            'version': te.getTelluriumVersion(),
            'timestamp': timestamp,
            'factory': self,
            'doc': self.doc,
            'model_sources': self.model_sources,
            'model_changes': self.model_changes,
        }
        pysedml = template.render(c)

        return pysedml