Эх сурвалжийг харах

Merge branch 'kahn-sort-fifo' into 'master'

Kahn sort: pop FIFO so execution order matches the previous tree walk

See merge request josephbburg/mantis!12
josephbburg 1 долоо хоног өмнө
parent
commit
874083c23a
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