Преглед изворни кода

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

whalemenace пре 1 месец
родитељ
комит
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