Skip to content

Commit

Permalink
fix index syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Sep 10, 2024
1 parent ea74366 commit 3990da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa_geo/geoagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def from_GeoDataFrame(self, gdf, set_attributes=True):
)

agents = []
for _index, row in gdf.iterrows():
for _, row in gdf.iterrows():
geometry = row[gdf.geometry.name]
new_agent = self.create_agent(geometry=geometry)

Expand Down

0 comments on commit 3990da4

Please sign in to comment.