chenhaiyang пре 5 година
родитељ
комит
5126b6b102
2 измењених фајлова са 6 додато и 6 уклоњено
  1. 1 1
      adjacent.py
  2. 5 5
      test.py

+ 1 - 1
adjacent.py

@@ -42,7 +42,7 @@ def calc_adjacent_relation(columns, segments, v_walls, walls):
                         space_relation.update(binary_space_relations)
 
     relations = []
-    for relation in relations:
+    for relation in space_relation:
         relations.append(relation)
 
     return relations

+ 5 - 5
test.py

@@ -42,10 +42,10 @@ def loads_curve(x):
 
 
 if __name__ == '__main__':
-    segment_sql = "SELECT * FROM revit.boundary_segment where model_id = '3af6d175c34e11e993ac85337be80696'"
-    wall_sql = "SELECT * FROM revit.wall where model_id = '3af6d175c34e11e993ac85337be80696'"
-    v_wall_sql = "SELECT * FROM revit.virtual_wall where model_id = '3af6d175c34e11e993ac85337be80696'"
-    columns_sql = "SELECT * FROM revit.column where model_id = '3af6d175c34e11e993ac85337be80696'"
+    segment_sql = "SELECT * FROM revit.boundary_segment where model_id = '8544a3c3cd2611e99abc839db1015353'"
+    wall_sql = "SELECT * FROM revit.wall where model_id = '8544a3c3cd2611e99abc839db1015353'"
+    v_wall_sql = "SELECT * FROM revit.virtual_wall where model_id = '8544a3c3cd2611e99abc839db1015353'"
+    columns_sql = "SELECT * FROM revit.column where model_id = '8544a3c3cd2611e99abc839db1015353'"
     segment_data = get_data(segment_sql)
     wall_data = get_data(wall_sql)
     v_wall_data = get_data(v_wall_sql)
@@ -117,4 +117,4 @@ if __name__ == '__main__':
         columns=columns_data
     )
     for item in test_result:
-        print('SideSpace:', item, type(item))
+        print(item)