-
Notifications
You must be signed in to change notification settings - Fork 247
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 #11708 from KratosMultiphysics/med/python-registry
[MedApp] add python registry
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# Application dependent names and paths | ||
from KratosMultiphysics import _ImportApplication | ||
from KratosMultiphysics import _ImportApplication, python_registry_utilities | ||
from KratosMedApplication import * | ||
|
||
application = KratosMedApplication() | ||
application_name = "KratosMedApplication" | ||
|
||
_ImportApplication(application, application_name) | ||
|
||
from . import python_registry_lists | ||
|
||
python_registry_utilities.RegisterAll("KratosMultiphysics.MedApplication", python_registry_lists) |
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,11 @@ | ||
from typing import List | ||
|
||
python_modelers_to_be_registered: List[str] = ["modelers.import_med_modeler.ImportMedModeler"] | ||
|
||
python_operations_to_be_registered: List[str] = [] | ||
|
||
python_processes_to_be_registered: List[str] = [] | ||
|
||
python_stages_to_be_registered: List[str] = [] | ||
|
||
python_orchestrators_to_be_registered: List[str] = [] |