Skip to content

Commit

Permalink
temp: revert sjoin back to use op=
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Apr 13, 2022
1 parent 9254854 commit 66cc627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lasso/roadway.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def calculate_county(

county_gdf = gpd.read_file(county_shape)
county_gdf = county_gdf.to_crs(epsg=RoadwayNetwork.CRS_alt)
joined_gdf = gpd.sjoin(centroids_gdf, county_gdf, how="left", predicate="intersects")
joined_gdf = gpd.sjoin(centroids_gdf, county_gdf, how="left", op="intersects")

joined_gdf[county_shape_variable] = (
joined_gdf[county_shape_variable]
Expand All @@ -301,7 +301,7 @@ def calculate_county(
self.links_df[network_variable] = joined_gdf[county_shape_variable]

nodes_gdf = self.nodes_df.copy()
joined_gdf = gpd.sjoin(nodes_gdf, county_gdf, how="left", predicate="intersects")
joined_gdf = gpd.sjoin(nodes_gdf, county_gdf, how="left", op="intersects")

joined_gdf[county_shape_variable] = (
joined_gdf[county_shape_variable]
Expand Down

1 comment on commit 66cc627

@i-am-sijia
Copy link
Member Author

Choose a reason for hiding this comment

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

Please sign in to comment.