Skip to content

Commit

Permalink
remove old code
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Jan 27, 2024
1 parent f7072ab commit 9710914
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mesa/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,6 @@ def shuffle(self, inplace: bool = False) -> AgentSet:
(agent for ref in weakrefs if (agent := ref()) is not None), self.model
)

# shuffled_agents = list(self)
# self.random.shuffle(shuffled_agents)
#
# return (
# AgentSet(shuffled_agents, self.model)
# if not inplace
# else self._update(shuffled_agents)
# )

def sort(
self,
key: Callable[[Agent], Any] | str,
Expand Down

0 comments on commit 9710914

Please sign in to comment.