CompartmentName.parse
compartment_model.CompartmentName.parse(name)
Parses a string as a CompartmentName. If the name contains no underscores, the entire name is the base name. If the name contains at least one underscore, the part before the first underscore is the base name and everything after is the subscript part. It is not possible to create a stratified name this way.
For example: in “E_phase_1”, “E” is the base name and “phase_1” is the subscript.
This is a class method.
Parameters
name: str
-
The string to parse.
Returns
Self
-
A CompartmentName instance.