sme.Model.import_geometry_from_image

Model.import_geometry_from_image(self: sme.Model, filename: str) None

sets the geometry of each compartment to the corresponding pixels in the supplied geometry image

Note

Currently this function assumes that the compartments maintain the same colour as they had with the previous geometry image. If the new image does not contain pixels of each of these colours, the new model geometry will not be valid. The volume of a pixel (in physical units) is also unchanged by this function.

Parameters:

filename (str) – the name of the geometry image to import