Skip to content

Commit be524f6

Browse files
fixing function arguments ordre
1 parent 39f4d38 commit be524f6

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/ansys/geometry/core/tools/prepare_tools.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ def enhanced_share_topology(
266266
)
267267

268268
message = RepairToolMessage(
269-
response.get("success"),
270-
response.get("created_bodies_monikers"),
271-
response.get("modified_bodies_monikers"),
272-
response.get("found"),
273-
response.get("repaired"),
269+
success=response.get("success"),
270+
created_bodies=response.get("created_bodies_monikers"),
271+
modified_bodies=response.get("modified_bodies_monikers"),
272+
found=response.get("found"),
273+
repaired=response.get("repaired"),
274274
)
275275
return message
276276

src/ansys/geometry/core/tools/problem_areas.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def fix(self) -> RepairToolMessage:
133133
)
134134
# parent_design._update_design_inplace()
135135
message = RepairToolMessage(
136-
response.result.success,
137-
response.result.created_bodies_monikers,
138-
response.result.modified_bodies_monikers,
136+
success=response.result.success,
137+
created_bodies=response.result.created_bodies_monikers,
138+
modified_bodies=response.result.modified_bodies_monikers,
139139
)
140140

141141
parent_design.update_from_tracker(response.result.complete_command_response)
@@ -190,9 +190,9 @@ def fix(self) -> RepairToolMessage:
190190
)
191191
parent_design._update_design_inplace()
192192
message = RepairToolMessage(
193-
response.result.success,
194-
response.result.created_bodies_monikers,
195-
response.result.modified_bodies_monikers,
193+
success=response.result.success,
194+
created_bodies=response.result.created_bodies_monikers,
195+
modified_bodies=response.result.modified_bodies_monikers,
196196
)
197197
# parent_design.update_from_tracker(response.result.complete_command_response)
198198
return message
@@ -243,11 +243,11 @@ def fix(self) -> RepairToolMessage:
243243
response = self._repair_stub.FixInexactEdges(
244244
FixInexactEdgesRequest(inexact_edge_problem_area_id=self._grpc_id)
245245
)
246-
# parent_design._update_design_inplace()
246+
parent_design._update_design_inplace()
247247
message = RepairToolMessage(
248-
response.result.success,
249-
response.result.created_bodies_monikers,
250-
response.result.modified_bodies_monikers,
248+
success=response.result.success,
249+
created_bodies=response.result.created_bodies_monikers,
250+
modified_bodies=response.result.modified_bodies_monikers,
251251
)
252252
return message
253253

@@ -297,9 +297,9 @@ def fix(self) -> RepairToolMessage:
297297
request = FixExtraEdgesRequest(extra_edge_problem_area_id=self._grpc_id)
298298
response = self._repair_stub.FixExtraEdges(request)
299299
message = RepairToolMessage(
300-
response.result.success,
301-
response.result.created_bodies_monikers,
302-
response.result.modified_bodies_monikers,
300+
success=response.result.success,
301+
created_bodies=response.result.created_bodies_monikers,
302+
modified_bodies=response.result.modified_bodies_monikers,
303303
)
304304
parent_design.update_from_tracker(response.result.complete_command_response)
305305

@@ -353,9 +353,9 @@ def fix(self) -> RepairToolMessage:
353353
)
354354
# parent_design._update_design_inplace()
355355
message = RepairToolMessage(
356-
response.result.success,
357-
response.result.created_bodies_monikers,
358-
response.result.modified_bodies_monikers,
356+
success=response.result.success,
357+
created_bodies=response.result.created_bodies_monikers,
358+
modified_bodies=response.result.modified_bodies_monikers,
359359
)
360360
parent_design.update_from_tracker(response.result.complete_command_response)
361361

@@ -409,9 +409,9 @@ def fix(self) -> RepairToolMessage:
409409
)
410410
# parent_design._update_design_inplace()
411411
message = RepairToolMessage(
412-
response.result.success,
413-
response.result.created_bodies_monikers,
414-
response.result.modified_bodies_monikers,
412+
success=response.result.success,
413+
created_bodies=response.result.created_bodies_monikers,
414+
modified_bodies=response.result.modified_bodies_monikers,
415415
)
416416

417417
parent_design.update_from_tracker(response.result.complete_command_response)
@@ -466,9 +466,9 @@ def fix(self) -> RepairToolMessage:
466466
)
467467
# parent_design._update_design_inplace()
468468
message = RepairToolMessage(
469-
response.result.success,
470-
response.result.created_bodies_monikers,
471-
response.result.modified_bodies_monikers,
469+
success=response.result.success,
470+
created_bodies=response.result.created_bodies_monikers,
471+
modified_bodies=response.result.modified_bodies_monikers,
472472
)
473473
parent_design.update_from_tracker(response.result.complete_command_response)
474474

@@ -522,9 +522,9 @@ def fix(self) -> RepairToolMessage:
522522
)
523523
# parent_design._update_design_inplace()
524524
message = RepairToolMessage(
525-
response.result.success,
526-
response.result.created_bodies_monikers,
527-
response.result.modified_bodies_monikers,
525+
success=response.result.success,
526+
created_bodies=response.result.created_bodies_monikers,
527+
modified_bodies=response.result.modified_bodies_monikers,
528528
)
529529
parent_design.update_from_tracker(response.result.complete_command_response)
530530
return message
@@ -572,9 +572,9 @@ def fix(self) -> RepairToolMessage:
572572
)
573573
# parent_design._update_design_inplace()
574574
message = RepairToolMessage(
575-
response.result.success,
576-
response.result.created_bodies_monikers,
577-
response.result.modified_bodies_monikers,
575+
success=response.result.success,
576+
created_bodies=response.result.created_bodies_monikers,
577+
modified_bodies=response.result.modified_bodies_monikers,
578578
)
579579
parent_design.update_from_tracker(response.result.complete_command_response)
580580
return message

0 commit comments

Comments
 (0)