def test_FormFactor(self): self.df_buildings["ff"] = mm.FormFactor(self.df_buildings, "volume").series check = (self.df_buildings.geometry[0].area) / ( self.df_buildings.volume[0]**(2 / 3)) assert self.df_buildings["ff"][0] == check self.df_buildings["ff"] = mm.FormFactor( self.df_buildings, mm.Volume(self.df_buildings, "height").series, areas=self.df_buildings.geometry.area, ).series check = (self.df_buildings.geometry[0].area) / ( self.df_buildings.volume[0]**(2 / 3)) assert self.df_buildings["ff"][0] == check
def time_FormFactor(self): mm.FormFactor(self.df_buildings, "volume")