diff --git a/src/pyedb/dotnet/edb_core/components.py b/src/pyedb/dotnet/edb_core/components.py index 5c75d1b0d3..8005f3c0eb 100644 --- a/src/pyedb/dotnet/edb_core/components.py +++ b/src/pyedb/dotnet/edb_core/components.py @@ -1807,8 +1807,8 @@ def set_component_model(self, componentname, model_type="Spice", modelpath=None, sParameterMod = self._edb.cell.hierarchy._hierarchy.SParameterModel() sParameterMod.SetComponentModelName(nPortModelName) - gndnets = filter(lambda x: "gnd" in x.lower(), componentNets) - if len(list(gndnets)) > 0: # pragma: no cover + gndnets = list(filter(lambda x: "gnd" in x.lower(), componentNets)) + if len(gndnets) > 0: # pragma: no cover net = gndnets[0] else: # pragma: no cover net = componentNets[len(componentNets) - 1]