Skip to content

Commit cf2d317

Browse files
committed
Fix mapping_types imports
1 parent 78d1203 commit cf2d317

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/ansys/dpf/core/data_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import weakref
2929

3030
from ansys.dpf.core import collection_base, common, errors, server as server_module
31-
from ansys.dpf.core.mapping_types import types
31+
from ansys.dpf.core.common import types
3232
from ansys.dpf.gate import (
3333
data_processing_capi,
3434
data_processing_grpcapi,

src/ansys/dpf/core/dpf_operator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@
3636
server_meet_version_and_raise,
3737
version_requires,
3838
)
39-
from ansys.dpf.core.common import types_enum_to_types
39+
from ansys.dpf.core.common import types, types_enum_to_types
4040
from ansys.dpf.core.config import Config
4141
from ansys.dpf.core.errors import DpfVersionNotSupported
4242
from ansys.dpf.core.inputs import Inputs
43-
from ansys.dpf.core.mapping_types import types
4443
from ansys.dpf.core.operator_specification import Specification
4544
from ansys.dpf.core.outputs import Output, Outputs, _Outputs
4645
from ansys.dpf.core.unit_system import UnitSystem

src/ansys/dpf/core/mapping_types.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,27 @@
2121
# SOFTWARE.
2222
"""Provides utilities for mapping and transforming data types between Python and C++ representations."""
2323

24+
from enum import Enum # noqa: F401
2425
import inspect
26+
from pathlib import Path # noqa: F401
2527
import sys
2628

27-
from ansys.dpf.core.available_result import * # noqa: F401, F403
29+
# Import types to map to cpp (camel case to snake case)
30+
from ansys.dpf.core.available_result import AvailableResult, Homogeneity # noqa: F401
31+
from ansys.dpf.core.collection_base import CollectionBase # noqa: F401
2832
from ansys.dpf.core.common import (
2933
_camel_to_snake_case,
3034
_smart_dict_camel,
3135
_snake_to_camel_case,
3236
)
33-
from ansys.dpf.core.data_sources import * # noqa: F401, F403
34-
from ansys.dpf.core.field import * # noqa: F401, F403
35-
from ansys.dpf.core.fields_container import * # noqa: F401, F403
36-
37-
## to do : change that one the module is done
38-
from ansys.dpf.core.meshed_region import * # noqa: F401, F403
39-
from ansys.dpf.core.scoping import * # noqa: F401, F403
40-
from ansys.dpf.core.time_freq_support import * # noqa: F401, F403
37+
from ansys.dpf.core.data_sources import DataSources # noqa: F401
38+
from ansys.dpf.core.dpf_array import DPFArray # noqa: F401
39+
from ansys.dpf.core.field import Field, FieldDefinition # noqa: F401
40+
from ansys.dpf.core.fields_container import FieldsContainer # noqa: F401
41+
from ansys.dpf.core.meshed_region import MeshedRegion # noqa: F401
42+
from ansys.dpf.core.scoping import Scoping # noqa: F401
43+
from ansys.dpf.core.support import Support # noqa: F401
44+
from ansys.dpf.core.time_freq_support import TimeFreqSupport # noqa: F401
4145

4246
map_types_to_cpp = _smart_dict_camel()
4347
for classes in inspect.getmembers(sys.modules[__name__], inspect.isclass):

0 commit comments

Comments
 (0)