mesa_frames.AgentSet.rename#
- AgentSet.rename(new_name: str, inplace: bool = True) Self[source]#
Rename this agent set. If attached to AgentSetRegistry, delegate for uniqueness enforcement.
- Parameters:
- Returns:
The updated AgentSet (or a renamed copy when
inplace=False).- Return type:
Self
- Raises:
ValueError – If name conflicts occur and delegate encounters errors.