CompartmentName.with_subscript

compartment_model.CompartmentName.with_subscript(subscript)

Return a copy of this name with the subscript changed.

Parameters

subscript: str | None

The new subscript.