mumot.parseModel

mumot.parseModel(modelDescription)[source]

Create model from text description.

Parameters:

modelDescription (str) – A reference to an input cell in a Jupyter Notebook (e.g. In[4]) that uses the %%model cell magic and contains several rules e.g.

%%model
U -> A : g_A
U -> B : g_B
A -> U : a_A
B -> U : a_B
A + U -> A + A : r_A
B + U -> B + B : r_B
A + B -> A + U : s
A + B -> B + U : s

or a model expressed as a multi-line string comprised of rules e.g.

'''
U -> A : g_A
U -> B : g_B
A -> U : a_A
B -> U : a_B
A + U -> A + A : r_A
B + U -> B + B : r_B
A + B -> A + U : s
A + B -> B + U : s
'''
Returns:

MuMoTmodel or None (with warning) – The instantiated MuMoT model.