Skip to content

Commit ae0c781

Browse files
fixing comments on PR
1 parent a28047a commit ae0c781

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/ansys/geometry/core/_grpc/_services/_service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222

2323
import grpc
2424

25-
from ansys.geometry.core._grpc._services.base.driving_dimensions import GRPCDrivingDimensionsService
26-
2725
from .._version import GeometryApiProtos, set_proto_version
2826
from .base.admin import GRPCAdminService
2927
from .base.bodies import GRPCBodyService
3028
from .base.dbuapplication import GRPCDbuApplicationService
29+
from .base.driving_dimensions import GRPCDrivingDimensionsService
3130
from .base.measurement_tools import GRPCMeasurementToolsService
3231
from .base.named_selection import GRPCNamedSelectionService
3332
from .base.prepare_tools import GRPCPrepareToolsService

src/ansys/geometry/core/_grpc/_services/v0/conversions.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
TrimmedSurface as GRPCTrimmedSurface,
5454
)
5555
from ansys.geometry.core.misc.checks import graphics_required
56-
from ansys.geometry.core.parameters.parameter import Parameter, ParameterType, ParameterUpdateStatus
5756

5857
if TYPE_CHECKING: # pragma: no cover
5958
import pyvista as pv
@@ -66,6 +65,11 @@
6665
from ansys.geometry.core.math.point import Point2D, Point3D
6766
from ansys.geometry.core.math.vector import UnitVector3D
6867
from ansys.geometry.core.misc.options import TessellationOptions
68+
from ansys.geometry.core.parameters.parameter import (
69+
Parameter,
70+
ParameterType,
71+
ParameterUpdateStatus,
72+
)
6973
from ansys.geometry.core.shapes.curves.curve import Curve
7074
from ansys.geometry.core.shapes.curves.trimmed_curve import TrimmedCurve
7175
from ansys.geometry.core.shapes.surfaces.surface import Surface

src/ansys/geometry/core/_grpc/_services/v0/driving_dimensions.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
from ansys.geometry.core.errors import protect_grpc
2727

2828
from ..base.driving_dimensions import GRPCDrivingDimensionsService
29-
from .conversions import (
30-
from_driving_dimension_to_grpc_driving_dimension,
31-
from_grpc_driving_dimension_to_driving_dimension,
32-
from_grpc_update_status_to_parameter_update_status,
33-
)
3429

3530

3631
class GRPCDrivingDimensionsServiceV0(GRPCDrivingDimensionsService):
@@ -56,6 +51,8 @@ def __init__(self, channel: grpc.Channel): # noqa: D102
5651
def get_all_parameters(self, **kwargs) -> dict: # noqa: D102
5752
from ansys.api.dbu.v0.drivingdimensions_pb2 import GetAllRequest
5853

54+
from .conversions import from_grpc_driving_dimension_to_driving_dimension
55+
5956
# Call the gRPC service
6057
response = self.stub.GetAll(GetAllRequest())
6158

@@ -71,6 +68,11 @@ def get_all_parameters(self, **kwargs) -> dict: # noqa: D102
7168
def set_parameter(self, **kwargs) -> dict: # noqa: D102
7269
from ansys.api.dbu.v0.drivingdimensions_pb2 import UpdateRequest
7370

71+
from .conversions import (
72+
from_driving_dimension_to_grpc_driving_dimension,
73+
from_grpc_update_status_to_parameter_update_status,
74+
)
75+
7476
# Create the request - assumes all inputs are valid and of the proper type
7577
request = UpdateRequest(
7678
driving_dimension=from_driving_dimension_to_grpc_driving_dimension(

0 commit comments

Comments
 (0)