mesa_frames.AgentSetRegistry.contains#
- AgentSetRegistry.contains(sets: AgentSet | type[AgentSet] | str) bool[source]#
- AgentSetRegistry.contains(sets: Iterable[AgentSet] | Iterable[type[AgentSet]] | Iterable[str]) Series
Check if selected AgentSets are present in the registry.
- Parameters:
sets (AgentSetSelector) – An AgentSet instance, class/type, name string, or a collection of those. For collections, returns a BoolSeries aligned with input order.
- Returns:
Boolean for single selector values; BoolSeries for collections.
- Return type:
bool | BoolSeries