Skip to content

Commit f91191c

Browse files
authored
FIX: #555 solder_ball_property not available with ComponentType.OTHER (#562)
1 parent a8dbfb8 commit f91191c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ansys/edb/core/hierarchy/component_group.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,13 @@ def component_property(self):
7777
or comp_type == edb_defs_pb2.ComponentType.CAPACITOR
7878
):
7979
return RLCComponentProperty(comp_prop.msg)
80-
if comp_type == edb_defs_pb2.ComponentType.IO:
81-
return IOComponentProperty(comp_prop.msg)
8280
if comp_type == edb_defs_pb2.ComponentType.IC:
8381
return ICComponentProperty(comp_prop.msg)
84-
if comp_type == edb_defs_pb2.ComponentType.OTHER:
85-
return comp_prop
82+
if (
83+
comp_type == edb_defs_pb2.ComponentType.IO
84+
or comp_type == edb_defs_pb2.ComponentType.OTHER
85+
):
86+
return IOComponentProperty(comp_prop.msg)
8687
else:
8788
return None
8889

0 commit comments

Comments
 (0)