Skip to content

Commit d84f5ea

Browse files
committed
Merge branch 'ci/fix_tracker_issues' of https://github.com/ansys/pyansys-geometry into ci/fix_tracker_issues
2 parents 2c99760 + b0bd109 commit d84f5ea

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

doc/changelog.d/2459.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix: v1 imprinting and projecting curves fixes

src/ansys/geometry/core/_grpc/_services/v1/bodies.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,15 +1265,15 @@ def imprint_curves(self, **kwargs) -> dict: # noqa: D102
12651265
return {
12661266
"edges": [
12671267
{
1268-
"id": edge.id,
1268+
"id": edge.id.id,
12691269
"curve_type": edge.curve_type,
12701270
"is_reversed": edge.is_reversed,
12711271
}
12721272
for edge in response.created_entities.edges
12731273
],
12741274
"faces": [
12751275
{
1276-
"id": face.id,
1276+
"id": face.id.id,
12771277
"surface_type": face.surface_type,
12781278
"is_reversed": face.is_reversed,
12791279
}
@@ -1345,7 +1345,7 @@ def imprint_projected_curves(self, **kwargs) -> dict: # noqa: D102
13451345
)
13461346

13471347
# Call the gRPC service
1348-
resp = self.edit_stub.ImprintProjectedCurves(request=request)
1348+
resp = self.edit_stub.ImprintProjectedCurves(request=request).response_data[0]
13491349

13501350
# Return the response - formatted as a dictionary
13511351
return {
@@ -1355,8 +1355,8 @@ def imprint_projected_curves(self, **kwargs) -> dict: # noqa: D102
13551355
"surface_type": face.surface_type,
13561356
"is_reversed": face.is_reversed,
13571357
}
1358-
for face in resp.response_data[0].faces
1359-
]
1358+
for face in resp.created_entities.faces
1359+
],
13601360
}
13611361

13621362
@protect_grpc

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,7 @@ def serialize_entity_identifier(entity):
17291729
],
17301730
}
17311731

1732+
17321733
def serialize_repair_command_response(response: GRPCRepairToolResponse) -> dict:
17331734
"""Serialize a RepairToolResponse object into a dictionary.
17341735

0 commit comments

Comments
 (0)