ecoli.processes.environment.derive_globals
- class ecoli.processes.environment.derive_globals.DeriveGlobals(parameters=None)[source]
Bases:
Step
Process for deriving volume, mmol_to_counts, and shape from the cell mass
- Parameters:
parameters (dict | None)
-
defaults: Dict[str, Any]
{ 'initial_mass': <Quantity(1339, 'femtogram')>, 'width': <Quantity(1, 'micrometer')>}
- name = 'globals_deriver'
- ecoli.processes.environment.derive_globals.length_from_volume(volume, width)[source]
get cell length from volume, using the following equation for capsule volume, with V=volume, r=radius, a=length of cylinder without rounded caps, l=total length:
V = (4/3)*PI*r^3 + PI*r^2*a l = a + 2*r