Skip to content

Commit

Permalink
index correction to retain crs
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Sep 12, 2022
1 parent 4248cca commit 135e1b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,12 @@ def test_Blocks_non_default_index(self):

def test_Blocks_inner(self):
streets = self.df_streets.copy()
streets.loc[35] = (
streets.loc[35, "geometry"] = (
self.df_buildings.geometry.iloc[141]
.representative_point()
.buffer(20)
.exterior
)
streets = streets.set_crs(self.df_tessellation.crs)
blocks = mm.Blocks(
self.df_tessellation, streets, self.df_buildings, "bID", "uID"
)
Expand Down

0 comments on commit 135e1b7

Please sign in to comment.