示例#1
0
 def test_CourtyardIndex(self):
     cas = self.df_buildings["cas"] = mm.CourtyardArea(self.df_buildings).series
     self.df_buildings["cix"] = mm.CourtyardIndex(self.df_buildings, "cas").series
     self.df_buildings["cix_array"] = mm.CourtyardIndex(
         self.df_buildings, cas, self.df_buildings.geometry.area
     ).series
     check = self.df_buildings.cas[80] / self.df_buildings.geometry.area[80]
     assert self.df_buildings["cix"][80] == check
     assert self.df_buildings["cix_array"][80] == check
示例#2
0
 def time_CourtyardIndex(self):
     mm.CourtyardIndex(self.df_buildings, "cas")