Skip to content

Commit

Permalink
D388: Fixed num_via_sides setter msg type
Browse files Browse the repository at this point in the history
  • Loading branch information
drewm102 committed Apr 17, 2024
1 parent f3a8dc5 commit dbbfd17
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/ansys/edb/core/inner/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
StringsMessage,
StringsPropertyMessage,
TemperatureSettingsMessage,
UInt64PropertyMessage,
ValueMessage,
ValuePairMessage,
ValuePairPropertyMessage,
Expand Down Expand Up @@ -369,6 +370,11 @@ def int_property_message(target, value):
return IntPropertyMessage(target=target.msg, value=value)


def uint64_property_message(target, value):
"""Convert to a ``UInt64PropertyMessage`` object."""
return UInt64PropertyMessage(target=target.msg, value=value)


def bool_property_message(target, value):
"""Convert to a ``BoolPropertyMessage`` object."""
return BoolPropertyMessage(target=target.msg, value=value)
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/edb/core/simulation_setup/simulation_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def num_via_sides(self):

@num_via_sides.setter
def num_via_sides(self, num_via_sides):
self.__stub.SetNumViaSides(messages.int_property_message(self, num_via_sides))
self.__stub.SetNumViaSides(messages.uint64_property_message(self, num_via_sides))

@property
def num_via_density(self):
Expand Down

0 comments on commit dbbfd17

Please sign in to comment.