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()
def time_Squareness(self): mm.Squareness(self.df_buildings)
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
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