pyLM  v1.1
A Python Problem Solving Environment for the simulation of stochastic biological systems
 All Classes Namespaces Files Functions Variables Pages
Functions
pyLM.ipyInterface Namespace Reference

Functions

def getReactionString
 Write a reaction to a string with the correct units. More...
 
def writeTable
 Write an HTML formatted table to a string. More...
 
def displayRDMESetup
 Display an RDME initial conditions in a Jupyter Notebook using ipywidgets. More...
 

Function Documentation

def pyLM.ipyInterface.displayRDMESetup (   filename,
  continuous_update = True 
)

Display an RDME initial conditions in a Jupyter Notebook using ipywidgets.

Parameters
filenameThe name of a LM file encoding an RDME simulation
continuous_updateWhether to update the view continuously or only during; default: True
def pyLM.ipyInterface.getReactionString (   rct,
  prd,
  rate 
)

Write a reaction to a string with the correct units.

Parameters
rctReactants tuple or string
prdProducts tuple or string
rateThe rate constant
Returns
Three strings: 1) Reaction, 2) rate constant, and 3) units of the rate constant
def pyLM.ipyInterface.writeTable (   columnNames,
  rows 
)

Write an HTML formatted table to a string.

Parameters
columnNamesThe name of the columns for the table
rowsA list of tuples each of the same length as columnNames