예제 #1
0
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = approx(3.707, rel=1e-3)
     assert self.df_buildings["squ"][0] == check
     self.df_buildings["squ"] = mm.Squareness(
         self.df_buildings.exterior).series
     assert self.df_buildings["squ"].isna().all()
예제 #2
0
 def time_Squareness(self):
     mm.Squareness(self.df_buildings)
예제 #3
0
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = approx(3.707, rel=1e-3)
     assert self.df_buildings["squ"][0] == check
예제 #4
0
파일: test_shape.py 프로젝트: cuulee/momepy
 def test_Squareness(self):
     self.df_buildings["squ"] = mm.Squareness(self.df_buildings).series
     check = round(3.7075816043359855, 4)
     assert round(self.df_buildings["squ"][0], 4) == check