Exemplo n.º 1
0
    def test_VolumeFacadeRatio(self):
        self.df_buildings["peri"] = self.df_buildings.geometry.length
        self.df_buildings["vfr"] = mm.VolumeFacadeRatio(
            self.df_buildings, "height", "volume", "peri").series
        check = self.df_buildings.volume[0] / (self.df_buildings.peri[0] *
                                               self.df_buildings.height[0])
        assert self.df_buildings["vfr"][0] == check

        peri = self.df_buildings.geometry.length
        volume = mm.Volume(self.df_buildings, "height").series
        self.df_buildings["vfr2"] = mm.VolumeFacadeRatio(
            self.df_buildings, "height", volume, peri).series
        assert self.df_buildings["vfr2"][0] == check

        self.df_buildings["peri"] = self.df_buildings.geometry.length
        self.df_buildings["vfr3"] = mm.VolumeFacadeRatio(
            self.df_buildings, "height").series

        assert self.df_buildings["vfr3"][0] == check
Exemplo n.º 2
0
 def time_VolumeFacadeRatio(self):
     mm.VolumeFacadeRatio(self.df_buildings, "height", "volume", "peri")