-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Project-OMOTES/16-update-to-sdk-0014-and-…
…to-mvp2-release 16: Update to newest SDK and use names for workflows as used from mvp…
- Loading branch information
Showing
9 changed files
with
93 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from omotes_sdk.workflow_type import WorkflowTypeManager, WorkflowType | ||
|
||
# TODO to be retrieved via de omotes_sdk in the future | ||
WORKFLOW_TYPE_MANAGER = WorkflowTypeManager( | ||
possible_workflows=[ | ||
WorkflowType( | ||
workflow_type_name="grow_optimizer_default", | ||
workflow_type_description_name="Grow Optimizer", | ||
), | ||
WorkflowType( | ||
workflow_type_name="grow_simulator", workflow_type_description_name="Grow Simulator" | ||
), | ||
WorkflowType( | ||
workflow_type_name="grow_optimizer_no_heat_losses", | ||
workflow_type_description_name="Grow Optimizer without heat losses", | ||
), | ||
WorkflowType( | ||
workflow_type_name="grow_optimizer_with_pressure", | ||
workflow_type_description_name="Grow Optimizer with pressure drops", | ||
), | ||
WorkflowType( | ||
workflow_type_name="simulator", | ||
workflow_type_description_name="High fidelity simulator", | ||
), | ||
] | ||
) | ||
|
||
FRONTEND_NAME_TO_OMOTES_WORKFLOW_NAME = { | ||
"Draft Design - Quickscan Validation": "grow_optimizer_no_heat_losses", | ||
"Draft Design - Optimization": "grow_optimizer_default", | ||
"Draft Design - Optimization with Pressure Drops": "grow_optimizer_with_pressure", | ||
"Draft Design - Simulation with Source Merit Order": "grow_simulator", | ||
"Conceptual Design - Simulation": "simulator", | ||
} |