Просмотр исходного кода

kahn sort: pop FIFO (popleft) so execution order matches the previous tree walk

whalemenace 1 месяц назад
Родитель
Сommit
449cd55c07
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      execution/readtree.py

+ 2 - 2
execution/readtree.py

@@ -661,8 +661,8 @@ def sort_execution(nodes, error_popups):
     
     processed_count = 0
     while(xForm_pass):
-        # for some reason using popleft here breaks everything... better not push my luck/
-        n = xForm_pass.pop()
+        n = xForm_pass.popleft()
+        # if n.execution_prepared: continue
         n.execution_prepared = True
         sorted_nodes.append(n)
         processed_count+=1