QuantitySelector.by

compartment_model.QuantitySelector.by(compartments=(), events=())

Select compartments and events by providing pattern strings for each.

Providing an empty sequence implies selecting none of that type. Multiple patterns are combined as though by boolean-or.

Parameters

compartments: str | Iterable[str] = () = ()

The compartment selection patterns.

events: str | Iterable[str] = () = ()

The event selection patterns.

Returns

QuantitySelection

The selection object.