Skip to content

Commit

Permalink
FIX: Fixed TypeError when setting design mode (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchienjacklin authored Jul 11, 2024
1 parent 8d221d7 commit e8f32d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/edb/core/inner/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def hfss_extent_info_message(hfss_info):

def design_mode_property_message(target, mode):
"""Convert to a ``DesignModePropertyMessage`` object."""
return DesignModePropertyMessage(target=target, mode=mode.value)
return DesignModePropertyMessage(target=target.msg, mode=mode.value)


def cell_find_message(database, cell_type, cell_name=None, cell_id=None):
Expand Down

0 comments on commit e8f32d1

Please sign in to comment.