Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH authored Dec 23, 2023
1 parent aad2183 commit 7eb6eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesa_interactive/components/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def get_agent_data_from_coord_iter(agents_per_coordinate):
for agents, (x, y) in agents_per_coordinate:
if agents: # Checking if the list is non-empty
if agents not isinstance(list):
if not isinstance(agents, list):
agents = [agents]
for agent in agents:
agent_data = json.loads(
Expand Down

0 comments on commit 7eb6eb8

Please sign in to comment.