mesa_frames.AgentSetRegistry.discard#

AgentSetRegistry.discard(sets: AbstractAgentSetSelector, inplace: bool = True) Self#

Remove AgentSets selected by sets. Ignores missing.

Parameters:
  • sets (AgentSetSelector) – Which AgentSets to remove (instance, type, name, or collection thereof).

  • inplace (bool) – Whether to remove in place. Defaults to True.

Returns:

The updated AbstractAgentSetRegistry.

Return type:

Self