|
34 | 34 | from .conversions import ( |
35 | 35 | serialize_tracker_command_response, |
36 | 36 | ) |
37 | | -from .conversions import build_grpc_id |
| 37 | + |
38 | 38 |
|
39 | 39 | class GRPCRepairToolsServiceV0(GRPCRepairToolsService): # noqa: D102 |
40 | 40 | """Repair tools service for gRPC communication with the Geometry server. |
@@ -469,7 +469,7 @@ def find_and_fix_simplify(self, **kwargs) -> dict: # noqa: D102 |
469 | 469 | "modified_bodies_monikers": [], |
470 | 470 | "complete_command_response": serialized_tracker_response, |
471 | 471 | } |
472 | | - |
| 472 | + |
473 | 473 | @protect_grpc |
474 | 474 | def find_and_fix_stitch_faces(self, **kwargs) -> dict: # noqa: D102 |
475 | 475 | from ansys.api.geometry.v0.repairtools_pb2 import FindStitchFacesRequest |
@@ -506,8 +506,8 @@ def find_and_fix_stitch_faces(self, **kwargs) -> dict: # noqa: D102 |
506 | 506 | "found": response.found, |
507 | 507 | "repaired": response.repaired, |
508 | 508 | "complete_command_response": serialized_tracker_response, |
509 | | - } |
510 | | - |
| 509 | + } |
| 510 | + |
511 | 511 | @protect_grpc |
512 | 512 | def inspect_geometry(self, **kwargs) -> dict: # noqa: D102 |
513 | 513 | from ansys.api.geometry.v0.repairtools_pb2 import InspectGeometryRequest |
@@ -549,14 +549,15 @@ def fix_duplicate_faces(self, **kwargs) -> dict: # noqa: D102 |
549 | 549 | response = self.stub.FixDuplicateFaces(request) |
550 | 550 |
|
551 | 551 | serialized_tracker_response = serialize_tracker_command_response( |
552 | | - response=response.result.complete_command_response) |
553 | | - |
| 552 | + response=response.result.complete_command_response |
| 553 | + ) |
| 554 | + |
554 | 555 | # Return the response - formatted as a dictionary |
555 | 556 | return { |
556 | 557 | "tracker_response": serialized_tracker_response, |
557 | 558 | "repair_tracker_response": self.__serialize_message_response(response), |
558 | | - } |
559 | | - |
| 559 | + } |
| 560 | + |
560 | 561 | @protect_grpc |
561 | 562 | def fix_missing_faces(self, **kwargs) -> dict: # noqa: D102 |
562 | 563 | from ansys.api.geometry.v0.repairtools_pb2 import FixMissingFacesRequest |
@@ -754,7 +755,7 @@ def fix_interference(self, **kwargs) -> dict: # noqa: D102 |
754 | 755 | "tracker_response": serialized_tracker_response, |
755 | 756 | "repair_tracker_response": self.__serialize_message_response(response), |
756 | 757 | } |
757 | | - |
| 758 | + |
758 | 759 | def __serialize_inspect_result_response(self, response) -> dict: # noqa: D102 |
759 | 760 | def serialize_body(body): |
760 | 761 | return { |
@@ -807,7 +808,7 @@ def serialize_issue(issue): |
807 | 808 | } |
808 | 809 | for body_issues in response.issues_by_body |
809 | 810 | ] |
810 | | - } |
| 811 | + } |
811 | 812 |
|
812 | 813 | def __serialize_message_response(self, response): |
813 | 814 | return { |
|
0 commit comments