QuantitySelector.compartments

compartment_model.QuantitySelector.compartments(*patterns)

Select compartments with zero or more pattern strings.

Specify no patterns to select all compartments. Pattern strings match against compartment names. Multiple patterns are combined as though by boolean-or. Pattern strings can use asterisk as a wildcard character to match any (non-empty) part of a name besides underscores. For example, “I_*” would match events “I_abc” and “I_def”.

Parameters

patterns: *str = ()

The compartment selection patterns, as a var-arg.

Returns

QuantitySelection

The selection object.