Skip to content

Commit

Permalink
Remove: Functional graph workflow
Browse files Browse the repository at this point in the history
This reverts commit f895c6b.
  • Loading branch information
wysockipiotr committed May 17, 2024
1 parent f895c6b commit d17dbfd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 31 deletions.
15 changes: 9 additions & 6 deletions smartschedule/planning/parallelization/stage_parallelization.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
from smartschedule.planning.parallelization.parallel_stages_list import (
ParallelStagesList,
)
from smartschedule.planning.parallelization.sorted_nodes_to_parallelized_stages import (
sorted_nodes_to_parallelized_stages,
)
from smartschedule.planning.parallelization.stage import Stage
from smartschedule.planning.parallelization.stages_to_nodes import stages_to_nodes
from smartschedule.sorter import graph_topological_sort
from smartschedule.utils.pipe import pipe

stage_parallelization_of = pipe(
stages_to_nodes,
graph_topological_sort,
sorted_nodes_to_parallelized_stages,
)

def stage_parallelization_of(stages: set[Stage]) -> ParallelStagesList:
nodes = stages_to_nodes(stages)
sorted_nodes = graph_topological_sort(nodes)
return sorted_nodes_to_parallelized_stages(sorted_nodes)
Empty file removed smartschedule/utils/__init__.py
Empty file.
25 changes: 0 additions & 25 deletions smartschedule/utils/pipe.py

This file was deleted.

0 comments on commit d17dbfd

Please sign in to comment.