From 2b4cb1ce43be12ef8f14db0f71f7cffcb22a1d24 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 22 Oct 2023 23:38:15 +0200 Subject: [PATCH] add med py registry --- applications/MedApplication/CMakeLists.txt | 1 + applications/MedApplication/MedApplication.py | 7 ++++++- applications/MedApplication/python_registry_lists.py | 11 +++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 applications/MedApplication/python_registry_lists.py diff --git a/applications/MedApplication/CMakeLists.txt b/applications/MedApplication/CMakeLists.txt index 0049e0ff248f..f8090de72639 100644 --- a/applications/MedApplication/CMakeLists.txt +++ b/applications/MedApplication/CMakeLists.txt @@ -57,6 +57,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # Add to the KratosMultiphisics Python module kratos_python_install(${INSTALL_PYTHON_USING_LINKS} ${CMAKE_CURRENT_SOURCE_DIR}/MedApplication.py KratosMultiphysics/MedApplication/__init__.py ) +kratos_python_install(${INSTALL_PYTHON_USING_LINKS} ${CMAKE_CURRENT_SOURCE_DIR}/python_registry_lists.py KratosMultiphysics/MedApplication/python_registry_lists.py ) # Install python files get_filename_component (CURRENT_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) diff --git a/applications/MedApplication/MedApplication.py b/applications/MedApplication/MedApplication.py index abfda436cbbd..3ed62a9ccda6 100644 --- a/applications/MedApplication/MedApplication.py +++ b/applications/MedApplication/MedApplication.py @@ -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) diff --git a/applications/MedApplication/python_registry_lists.py b/applications/MedApplication/python_registry_lists.py new file mode 100644 index 000000000000..180caafef2c0 --- /dev/null +++ b/applications/MedApplication/python_registry_lists.py @@ -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] = []