Skip to content

Commit

Permalink
D281: Pass correct enum value of EdgeType when creating Edge (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro727 authored Jul 10, 2023
1 parent d6f600d commit c8025c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/edb/terminal/terminals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit c8025c8

Please sign in to comment.