Skip to content
Snippets Groups Projects
Commit 2fcb33f1 authored by lukas leufen's avatar lukas leufen
Browse files

rename CustomWorkflow to Workflow and make workflow available in src/

parent 60f4b71f
No related branches found
No related tags found
3 merge requests!125Release v0.10.0,!124Update Master to new version v0.10.0,!111Resolve "run module registry"
Pipeline #39827 failed
...@@ -5,7 +5,8 @@ __version_info__ = { ...@@ -5,7 +5,8 @@ __version_info__ = {
} }
from src.run_modules import * from src.run_modules import *
from src.workflows.default_workflow import DefaultWorkflow from src.workflows import DefaultWorkflow, Workflow
def get_version(): def get_version():
......
from src.workflows.abstract_workflow import Workflow
from src.workflows.default_workflow import DefaultWorkflow
\ No newline at end of file
...@@ -8,7 +8,7 @@ from collections import OrderedDict ...@@ -8,7 +8,7 @@ from collections import OrderedDict
from src import RunEnvironment from src import RunEnvironment
class AbstractWorkflow: class Workflow:
"""Abstract workflow class to handle sequence of stages (run modules). An inheriting class has to first initialise """Abstract workflow class to handle sequence of stages (run modules). An inheriting class has to first initialise
this mother class and can afterwards add an arbitrary number of stages by using the add method. The execution order this mother class and can afterwards add an arbitrary number of stages by using the add method. The execution order
is equal to the ordering of the stages have been added. To run the workflow, finally, a single call of the run is equal to the ordering of the stages have been added. To run the workflow, finally, a single call of the run
......
...@@ -6,10 +6,10 @@ __date__ = '2020-06-26' ...@@ -6,10 +6,10 @@ __date__ = '2020-06-26'
import inspect import inspect
from src.helpers import remove_items from src.helpers import remove_items
from src.run_modules import ExperimentSetup, PreProcessing, PartitionCheck, ModelSetup, Training, PostProcessing from src.run_modules import ExperimentSetup, PreProcessing, PartitionCheck, ModelSetup, Training, PostProcessing
from src.workflows.abstract_workflow import AbstractWorkflow from src.workflows.abstract_workflow import Workflow
class DefaultWorkflow(AbstractWorkflow): class DefaultWorkflow(Workflow):
"""A default workflow executing ExperimentSetup, PreProcessing, PartitionCheck, ModelSetup, Training and """A default workflow executing ExperimentSetup, PreProcessing, PartitionCheck, ModelSetup, Training and
PostProcessing in exact the mentioned ordering.""" PostProcessing in exact the mentioned ordering."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment