CompartmentName
self, base, subscript, strata) compartment_model.CompartmentName(
The name of a compartment, which may have subscript and strata parts.
CompartmentName is a frozen dataclass.
Parameters
Attributes
Methods
Name | Description |
---|---|
parse |
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. |
with_subscript |
Return a copy of this name with the subscript changed. |
with_strata |
Return a copy of this name with the strata changed. |