Skip to content

Commit 8635134

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

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/ansys/dpf/gate/common.py

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

3-
from ansys.dpf.core.common import locations # noqa: F401
4-
53
elemental_property_type_dict = {
64
"eltype": "ELEMENT_TYPE",
75
"elshape": "ELEMENT_SHAPE",

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.gate.common import locations
54+
from ansys.dpf.core.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.gate.common import locations
62+
from ansys.dpf.core.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.gate.common import locations
70+
from ansys.dpf.core.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)