Beispiel #1
0
 def test_CellAlignment(self):
     self.df_buildings["orient"] = blgori = mm.Orientation(
         self.df_buildings).series
     self.df_tessellation["orient"] = tessori = mm.Orientation(
         self.df_tessellation).series
     self.df_buildings["c_align"] = mm.CellAlignment(
         self.df_buildings, self.df_tessellation, "orient", "orient", "uID",
         "uID").series
     self.df_buildings["c_align_array"] = mm.CellAlignment(
         self.df_buildings, self.df_tessellation, blgori, tessori, "uID",
         "uID").series
     check = abs(
         self.df_buildings["orient"][0] -
         self.df_tessellation[self.df_tessellation["uID"] == self.
                              df_buildings["uID"][0]]["orient"].iloc[0])
     assert self.df_buildings["c_align"][0] == pytest.approx(check)
 def time_CellAlignment(self):
     mm.CellAlignment(self.df_buildings, self.df_tessellation, "orient",
                      "orient", "uID", "uID")