Skip to content

Commit

Permalink
in geopandas op parameter was replaced through predicate parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Jul 1, 2024
1 parent e0365b5 commit 9f08a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

def filter_persons(persons):
persons = gpd.GeoDataFrame(persons, geometry=gpd.points_from_xy(persons.home_x, persons.home_y))
df = gpd.sjoin(persons.set_crs("EPSG:25832"), region, how="inner", op="intersects")
df = gpd.sjoin(persons.set_crs("EPSG:25832"), region, how="inner", predicate="intersects")

print("Filtered %s persons" % len(df))

Expand Down

2 comments on commit 9f08a87

@simei94
Copy link
Contributor Author

@simei94 simei94 commented on 9f08a87 Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rakow could you adapt this in matsim-python-tools? I did not find the corresponding script there

@rakow
Copy link
Contributor

@rakow rakow commented on 9f08a87 Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this in the matsim scenario template

Please sign in to comment.