sme.Model.membranes
- property Model.membranes
the membranes in this model
a list of
Membrane
that can be iterated over, or indexed into by name or position in the list.Examples
the list of membranes can be iterated over:
>>> import sme >>> model = sme.open_example_model() >>> for membrane in model.membranes: ... print(membrane.name) Outside <-> Cell Cell <-> Nucleus
or a membrane can be found using its name:
>>> outer = model.membranes["Outside <-> Cell"] >>> print(outer.name) Outside <-> Cell
or indexed by its position in the list:
>>> last_membrane = model.membranes[-1] >>> print(last_membrane.name) Cell <-> Nucleus
- Type: