Skip to content

Commit a560270

Browse files
committed
Move locations Enum definition from gate to ansys.dpf.core.common
1 parent d6640ca commit a560270

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/ansys/dpf/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737

3838

39-
class locations(Enum):
39+
class locations:
4040
"""Contains strings for scoping and field locations.
4141
4242
Attributes

src/ansys/dpf/gate/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import abc
22

3+
from ansys.dpf.core.common import locations # noqa: F401
34

45
elemental_property_type_dict = {
56
"eltype": "ELEMENT_TYPE",

src/ansys/dpf/gate/meshed_region_grpcapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ def meshed_region_get_num_faces(meshedRegion):
5151
@staticmethod
5252
def meshed_region_get_shared_nodes_scoping(meshedRegion):
5353
from ansys.grpc.dpf import meshed_region_pb2
54-
from ansys.dpf.core.common import locations
54+
from ansys.dpf.gate.common import locations
5555
request = meshed_region_pb2.GetScopingRequest(mesh=meshedRegion._internal_obj)
5656
request.loc.location = locations.nodal
5757
return _get_stub(meshedRegion._server).GetScoping(request)
5858

5959
@staticmethod
6060
def meshed_region_get_shared_elements_scoping(meshedRegion):
6161
from ansys.grpc.dpf import meshed_region_pb2
62-
from ansys.dpf.core.common import locations
62+
from ansys.dpf.gate.common import locations
6363
request = meshed_region_pb2.GetScopingRequest(mesh=meshedRegion._internal_obj)
6464
request.loc.location = locations.elemental
6565
return _get_stub(meshedRegion._server).GetScoping(request)
6666

6767
@staticmethod
6868
def meshed_region_get_shared_faces_scoping(meshedRegion):
6969
from ansys.grpc.dpf import meshed_region_pb2
70-
from ansys.dpf.core.common import locations
70+
from ansys.dpf.gate.common import locations
7171
request = meshed_region_pb2.GetScopingRequest(mesh=meshedRegion._internal_obj)
7272
request.loc.location = locations.elemental_nodal
7373
return _get_stub(meshedRegion._server).GetScoping(request)

0 commit comments

Comments
 (0)