From 64c3d82417c85fd4cc05ffcbd7d4e5e0fc92cf9e Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Fri, 22 Nov 2024 00:32:18 +0100 Subject: [PATCH] refactor: rename mock_py libs --- docs/source/index.rst | 2 +- docs/source/src_mock_py/microphysics_scheme_wrapper.rst | 2 +- docs/source/src_mock_py/mock_microphysics_scheme.rst | 2 +- libs/icon_graupel/microphysics_scheme_wrapper.py | 2 +- libs/icon_satadj/microphysics_scheme_wrapper.py | 2 +- libs/{src_mock_py => mock_microphys}/__init__.py | 2 +- .../microphysics_scheme_wrapper.py | 2 +- .../mock_microphysics_scheme.py | 2 +- scripts/using_microphysics_scheme_example.py | 2 +- tests/test_case_0dparcel/test_mock_py.py | 2 +- tests/test_mock_py_microphysics_scheme.py | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) rename libs/{src_mock_py => mock_microphys}/__init__.py (94%) rename libs/{src_mock_py => mock_microphys}/microphysics_scheme_wrapper.py (99%) rename libs/{src_mock_py => mock_microphys}/mock_microphysics_scheme.py (99%) diff --git a/docs/source/index.rst b/docs/source/index.rst index 7457288..5508195 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -32,7 +32,7 @@ Contents tests/index thermo/index pympdata_bulk/index - src_mock_py/index + mock_microphys/index mock_bindcxx/index utility_functions/index diff --git a/docs/source/src_mock_py/microphysics_scheme_wrapper.rst b/docs/source/src_mock_py/microphysics_scheme_wrapper.rst index 744cb04..8c9dc0d 100644 --- a/docs/source/src_mock_py/microphysics_scheme_wrapper.rst +++ b/docs/source/src_mock_py/microphysics_scheme_wrapper.rst @@ -1,7 +1,7 @@ Wrapper for Python Mock Microphysics Scheme ============================================ -.. autoclass:: libs.src_mock_py.microphysics_scheme_wrapper.MicrophysicsSchemeWrapper +.. autoclass:: libs.mock_microphys.microphysics_scheme_wrapper.MicrophysicsSchemeWrapper :members: :undoc-members: :private-members: diff --git a/docs/source/src_mock_py/mock_microphysics_scheme.rst b/docs/source/src_mock_py/mock_microphysics_scheme.rst index 693e156..716ed39 100644 --- a/docs/source/src_mock_py/mock_microphysics_scheme.rst +++ b/docs/source/src_mock_py/mock_microphysics_scheme.rst @@ -1,7 +1,7 @@ Python Mock Microphysics Module =============================== -.. autoclass:: libs.src_mock_py.mock_microphysics_scheme.MicrophysicsScheme +.. autoclass:: libs.mock_microphys.mock_microphysics_scheme.MicrophysicsScheme :members: :undoc-members: :private-members: diff --git a/libs/icon_graupel/microphysics_scheme_wrapper.py b/libs/icon_graupel/microphysics_scheme_wrapper.py index c967f20..61bee89 100644 --- a/libs/icon_graupel/microphysics_scheme_wrapper.py +++ b/libs/icon_graupel/microphysics_scheme_wrapper.py @@ -3,7 +3,7 @@ ----- Microphysics Test Cases ----- File: microphysics_scheme_wrapper.py -Project: src_mock_py +Project: mock_microphys Created Date: Wednesday 28th February 2024 Author: Clara Bayley (CB) Additional Contributors: Joerg Behrens, Georgiana Mania diff --git a/libs/icon_satadj/microphysics_scheme_wrapper.py b/libs/icon_satadj/microphysics_scheme_wrapper.py index 05aa639..e4cb934 100644 --- a/libs/icon_satadj/microphysics_scheme_wrapper.py +++ b/libs/icon_satadj/microphysics_scheme_wrapper.py @@ -3,7 +3,7 @@ ----- Microphysics Test Cases ----- File: microphysics_scheme_wrapper.py -Project: src_mock_py +Project: mock_microphys Created Date: Wednesday 28th February 2024 Author: Clara Bayley (CB) Additional Contributors: Joerg Behrens, Georgiana Mania diff --git a/libs/src_mock_py/__init__.py b/libs/mock_microphys/__init__.py similarity index 94% rename from libs/src_mock_py/__init__.py rename to libs/mock_microphys/__init__.py index 14345e7..73ada86 100644 --- a/libs/src_mock_py/__init__.py +++ b/libs/mock_microphys/__init__.py @@ -3,7 +3,7 @@ ----- Microphysics Test Cases ----- File: __init__.py -Project: src_mock_py +Project: mock_microphys Created Date: Tuesday 27th February 2024 Author: Clara Bayley (CB) Additional Contributors: diff --git a/libs/src_mock_py/microphysics_scheme_wrapper.py b/libs/mock_microphys/microphysics_scheme_wrapper.py similarity index 99% rename from libs/src_mock_py/microphysics_scheme_wrapper.py rename to libs/mock_microphys/microphysics_scheme_wrapper.py index 5f5c78a..cc7dae1 100644 --- a/libs/src_mock_py/microphysics_scheme_wrapper.py +++ b/libs/mock_microphys/microphysics_scheme_wrapper.py @@ -3,7 +3,7 @@ ----- Microphysics Test Cases ----- File: microphysics_scheme_wrapper.py -Project: src_mock_py +Project: mock_microphys Created Date: Wednesday 28th February 2024 Author: Clara Bayley (CB) Additional Contributors: diff --git a/libs/src_mock_py/mock_microphysics_scheme.py b/libs/mock_microphys/mock_microphysics_scheme.py similarity index 99% rename from libs/src_mock_py/mock_microphysics_scheme.py rename to libs/mock_microphys/mock_microphysics_scheme.py index b220c87..831fceb 100644 --- a/libs/src_mock_py/mock_microphysics_scheme.py +++ b/libs/mock_microphys/mock_microphysics_scheme.py @@ -3,7 +3,7 @@ ----- Microphysics Test Cases ----- File: mock_microphysics_scheme.py -Project: src_mock_py +Project: mock_microphys Created Date: Tuesday 27th February 2024 Author: Clara Bayley (CB) Additional Contributors: diff --git a/scripts/using_microphysics_scheme_example.py b/scripts/using_microphysics_scheme_example.py index be72c6e..73b4be9 100644 --- a/scripts/using_microphysics_scheme_example.py +++ b/scripts/using_microphysics_scheme_example.py @@ -26,7 +26,7 @@ sys.path.append(path + "/../libs/") # add path to python modules to PATH from thermo.thermodynamics import Thermodynamics -from src_mock_py.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper +from mock_microphys.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper def print_message(time, thermo): diff --git a/tests/test_case_0dparcel/test_mock_py.py b/tests/test_case_0dparcel/test_mock_py.py index 0d81da8..6d63651 100644 --- a/tests/test_case_0dparcel/test_mock_py.py +++ b/tests/test_case_0dparcel/test_mock_py.py @@ -23,7 +23,7 @@ from .perform_0dparcel_test_case import perform_0dparcel_test_case from libs.thermo.thermodynamics import Thermodynamics -from libs.src_mock_py.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper +from libs.mock_microphys.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper def test_mock_py_0dparcel(): diff --git a/tests/test_mock_py_microphysics_scheme.py b/tests/test_mock_py_microphysics_scheme.py index 0f59b1c..d045dec 100644 --- a/tests/test_mock_py_microphysics_scheme.py +++ b/tests/test_mock_py_microphysics_scheme.py @@ -20,8 +20,8 @@ import numpy as np -from libs.src_mock_py.mock_microphysics_scheme import MicrophysicsScheme -from libs.src_mock_py.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper +from libs.mock_microphys.mock_microphysics_scheme import MicrophysicsScheme +from libs.mock_microphys.microphysics_scheme_wrapper import MicrophysicsSchemeWrapper from libs.thermo.thermodynamics import Thermodynamics