Skip to content

Commit c82ca70

Browse files
REFACTOR: Move internal files to a new directory (#5910)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent a9eac39 commit c82ca70

100 files changed

Lines changed: 187 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ignore:
55
- "src/ansys/aedt/core/workflows/installer"
66
- "src/ansys/aedt/core/workflows/templates"
77
- "src/ansys/aedt/core/common_rpc.py"
8-
- "src/ansys/aedt/core/generic/grpc_plugin_dll_class.py"
8+
- "src/ansys/aedt/core/internal/grpc_plugin_dll_class.py"
99
- "src/ansys/aedt/core/edb.py"
1010
- "src/ansys/aedt/core/filtersolutions_core" # ignore filtersolutions feature for the current release pending 2025R1 update
1111
- "src/ansys/aedt/core/filtersolutions.py" # ignore filtersolutions feature for the current release pending 2025R1 update
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move internal files to a new directory

doc/source/User_guide/emit_modeler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EMIT-HFSS link creation example:
4545
import os
4646
import ansys.aedt.core
4747
from ansys.aedt.core import Emit
48-
from ansys.aedt.core.generic.filesystem import Scratch
48+
from ansys.aedt.core.internal.filesystem import Scratch
4949
5050
scratch_path = ansys.aedt.core.generate_unique_folder_name()
5151
temp_folder = os.path.join(scratch_path, ("EmitHFSSExample"))

doc/source/release_1_0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The following table list the name changes with the old and new paths:
126126
+----------------------------------------------------------------+--------------------------------------------------------------------------+
127127
| pyaedt\\generic\\DataHandlers.py | src\\ansys\\aedt\\core\\generic\\data_handlers.py |
128128
+----------------------------------------------------------------+--------------------------------------------------------------------------+
129-
| pyaedt\\generic\\LoadAEDTFile.py | src\\ansys\\aedt\\core\\generic\\load_aedt_file.py |
129+
| pyaedt\\generic\\LoadAEDTFile.py | src\\ansys\\aedt\\core\\internal\\load_aedt_file.py |
130130
+----------------------------------------------------------------+--------------------------------------------------------------------------+
131131
| pyaedt\\modeler\\modeler2d.py | src\\ansys\\aedt\\core\\modeler\\modeler_2d.py |
132132
+----------------------------------------------------------------+--------------------------------------------------------------------------+

src/ansys/aedt/core/application/aedt_file_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
from typing import Union
3030
import warnings
3131

32-
from ansys.aedt.core.generic.errors import AEDTRuntimeError
3332
from ansys.aedt.core.generic.file_utils import read_csv
3433
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
34+
from ansys.aedt.core.internal.errors import AEDTRuntimeError
3535

3636

3737
@pyaedt_function_handler()

src/ansys/aedt/core/application/aedt_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
import warnings
2828

2929
from ansys.aedt.core.application.aedt_units import AedtUnits
30-
from ansys.aedt.core.generic.desktop_sessions import _desktop_sessions
3130
from ansys.aedt.core.generic.general_methods import is_linux
3231
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
3332
from ansys.aedt.core.generic.general_methods import settings
33+
from ansys.aedt.core.internal.desktop_sessions import _desktop_sessions
3434

3535

3636
class AedtObjects(object):

src/ansys/aedt/core/application/analysis_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import warnings
3131

3232
from ansys.aedt.core.application.analysis import Analysis
33-
from ansys.aedt.core.generic.checks import min_aedt_version
3433
from ansys.aedt.core.generic.configurations import Configurations
3534
from ansys.aedt.core.generic.constants import unit_converter
3635
from ansys.aedt.core.generic.file_utils import check_if_path_exists
@@ -40,6 +39,7 @@
4039
from ansys.aedt.core.generic.file_utils import read_component_file
4140
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
4241
from ansys.aedt.core.generic.settings import settings
42+
from ansys.aedt.core.internal.checks import min_aedt_version
4343

4444

4545
class FieldAnalysis3D(Analysis, object):

src/ansys/aedt/core/application/design.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
from ansys.aedt.core.application.variables import VariableManager
6363
from ansys.aedt.core.desktop import _init_desktop_from_design
6464
from ansys.aedt.core.desktop import exception_to_desktop
65-
from ansys.aedt.core.generic.aedt_versions import aedt_versions
6665
from ansys.aedt.core.generic.constants import AEDT_UNITS
6766
from ansys.aedt.core.generic.constants import unit_system
6867
from ansys.aedt.core.generic.data_handlers import variation_string_to_dict
69-
from ansys.aedt.core.generic.errors import GrpcApiError
7068
from ansys.aedt.core.generic.file_utils import check_and_download_file
7169
from ansys.aedt.core.generic.file_utils import generate_unique_name
7270
from ansys.aedt.core.generic.file_utils import is_project_locked
@@ -80,9 +78,11 @@
8078
from ansys.aedt.core.generic.general_methods import is_windows
8179
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
8280
from ansys.aedt.core.generic.general_methods import settings
83-
from ansys.aedt.core.generic.load_aedt_file import load_entire_aedt_file
8481
from ansys.aedt.core.generic.numbers import _units_assignment
8582
from ansys.aedt.core.generic.numbers import decompose_variable_value
83+
from ansys.aedt.core.internal.aedt_versions import aedt_versions
84+
from ansys.aedt.core.internal.errors import GrpcApiError
85+
from ansys.aedt.core.internal.load_aedt_file import load_entire_aedt_file
8686
from ansys.aedt.core.modules.boundary.common import BoundaryObject
8787
from ansys.aedt.core.modules.boundary.icepak_boundary import NetworkObject
8888
from ansys.aedt.core.modules.boundary.layout_boundary import BoundaryObject3dLayout

src/ansys/aedt/core/application/variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
from ansys.aedt.core.generic.constants import SI_UNITS
4848
from ansys.aedt.core.generic.constants import _resolve_unit_system
4949
from ansys.aedt.core.generic.constants import unit_system
50-
from ansys.aedt.core.generic.errors import GrpcApiError
5150
from ansys.aedt.core.generic.file_utils import open_file
5251
from ansys.aedt.core.generic.general_methods import check_numeric_equivalence
5352
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
5453
from ansys.aedt.core.generic.numbers import Quantity
5554
from ansys.aedt.core.generic.numbers import decompose_variable_value
5655
from ansys.aedt.core.generic.numbers import is_array
5756
from ansys.aedt.core.generic.numbers import is_number
57+
from ansys.aedt.core.internal.errors import GrpcApiError
5858

5959

6060
class CSVDataset:

src/ansys/aedt/core/circuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
from ansys.aedt.core.generic.file_utils import generate_unique_name
4040
from ansys.aedt.core.generic.file_utils import open_file
4141
from ansys.aedt.core.generic.file_utils import read_configuration_file
42-
from ansys.aedt.core.generic.filesystem import search_files
4342
from ansys.aedt.core.generic.general_methods import is_linux
4443
from ansys.aedt.core.generic.general_methods import pyaedt_function_handler
4544
from ansys.aedt.core.generic.settings import settings
4645
from ansys.aedt.core.hfss3dlayout import Hfss3dLayout
46+
from ansys.aedt.core.internal.filesystem import search_files
4747
from ansys.aedt.core.modules.boundary.circuit_boundary import CurrentSinSource
4848
from ansys.aedt.core.modules.boundary.circuit_boundary import PowerIQSource
4949
from ansys.aedt.core.modules.boundary.circuit_boundary import PowerSinSource

0 commit comments

Comments
 (0)