from ecell4 import *
from ecell4_base.core import Quantity_Integer, Quantity_Real
with species_attributes():
A | B | C | {}
D | {'location': 'M'}
M | {'dimension': 2, 'structure': True}
with reaction_rules():
A + B > C | Quantity_Real(0.01, 'um**3/item/s')
A + M > D | Quantity_Real(1.0, 'um/s')
A > B | Quantity_Real(1.0, 'item/s') * A / (Quantity_Integer(120, 'item') + A)
m = get_model()
from ecell4.extra.unit_checker import check_units
check_units(m) # Nothing would occur
pint
is required.