From c8025c8f09c82bf474c6502f1e1021676fe51d9c Mon Sep 17 00:00:00 2001 From: Hiroki Date: Mon, 10 Jul 2023 16:26:14 -0500 Subject: [PATCH] D281: Pass correct enum value of EdgeType when creating Edge (#282) --- src/ansys/edb/terminal/terminals.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/edb/terminal/terminals.py b/src/ansys/edb/terminal/terminals.py index 607431fe01..28f02e80ad 100644 --- a/src/ansys/edb/terminal/terminals.py +++ b/src/ansys/edb/terminal/terminals.py @@ -88,7 +88,7 @@ def cast(self): @classmethod def _create(cls, **params): - return cls.__stub.Create(messages.edge_creation_message(cls.type, **params)) + return cls.__stub.Create(messages.edge_creation_message(cls.type.value, **params)) @property def _type(self): @@ -122,7 +122,7 @@ def create(cls, padstack_instance, layer, arc): ------- PadEdge """ - return PrimitiveEdge(cls._create(padstack_instance=padstack_instance, layer=layer, arc=arc)) + return PadEdge(cls._create(padstack_instance=padstack_instance, layer=layer, arc=arc)) @property def padstack_instance(self): @@ -173,7 +173,7 @@ def create(cls, prim, point): ------- PrimitiveEdge """ - return PrimitiveEdge(cls._create(primitive=primitive, point=point)) + return PrimitiveEdge(cls._create(primitive=prim, point=point)) @property def primitive(self):